creation: 3/24/99 (using AWT), major revision: 01/06/02 (using Swing), small edits: 02/03/04
A GUI for a Java program can be created by extending the class
JFrame
.
The JFrame
class holds the basic GUI
functionality.
You extend this class by adding the
functions your application needs.
This chapter introduces these ideas.
JFrame
class.JFrame
classpaint()
method.drawString()
method.It may be helpful at times to refer back to the class hierarchy diagrams of the previous chapter.