The Prob11Runner class begins in Listing 3.
Listing 3 declares several instance variables
Note that the class extends JFrame, so an object of the class "is a" JFrame object.
Listing 3. Beginning of the Prob11Runner class. |
---|
class Prob11Runner extends JFrame{ private Prob11Runner jFrameObj = null; private PictureExplorer explorer = null; private Picture pix; private JPanel fileNamePanel = new JPanel(); private JTextField inputFileNameField = new JTextField("Prob11a.jpg",20); private String fileName = "no file specified"; |
File: ao.htm | [Next] | [Prev] |