creation: 3/24/99 (using AWT), major revision: 01/06/02 (using Swing), small edits: 02/03/04

CHAPTER 56 — Swing Frames

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.

Chapter Topics:

It may be helpful at times to refer back to the class hierarchy diagrams of the previous chapter.

QUESTION 1:

(Review: ) What are the three parts of a GUI program?

  1. Graphical __________ that make up the Graphical User Interface.
  2. ____________ methods that receive the events and respond to them.
  3. ____________ methods that do useful work for the user.