created: 3/24/99 (using AWT), major revision: 01/06/02 (using Swing), small edits: 02/03/04 02/12/05, 07/17/06
You create a GUI by extending class
JFrame
.
This class holds the basic GUI
functions.
Extend this class by adding the
components and methods that 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.
(Review: ) What are the three parts of a GUI program?