// NOTE: The audio files are not supplied in the solution. // The images supplied are not real persons. import java.awt.*; import javax.swing.*; import java.util.*; public class Exercise16_10 extends JApplet implements Runnable { // Description panel to display photo, name and text private NewDescriptionPanel descriptionPanel = new NewDescriptionPanel(); // Number of the slides specified in the HTML page private int numOfStudents = 0; private ImageIcon[] imageIcon; private String[] text; private String[] name; // Run slide show on a separate thread private Thread thread = null; // Control the slides show private boolean suspended = false; // Initialize the applet public void init() { // Get the numOfStudents parameter from the HTML page numOfStudents = Integer.valueOf(getParameter("numOfStudents")).intValue(); System.out.println("number of students " + numOfStudents); // Create arrays for imageIcon, text and name imageIcon = new ImageIcon[numOfStudents]; text = new String[numOfStudents]; name = new String[numOfStudents]; // Initialize text, name and imageIcon for (int i=0; i