A First Attempt at an Applet Class
Now the FileDisplay class in FileDisplay.java is:
public class FileDisplay extends JApplet {
public FileDisplay() {
Vector lines = new Vector() ;
. . . Read all lines from input file to lines . . .
getContentPanel().add(new FilePanel(lines)) ;
}
}
Note we have violated a security restriction, by attempting to read a file. We will return to this issue later.