created: 3/24/99 (using AWT), major revision: 01/06/02 (using Swing), small edits: 02/03/04 02/12/05, 07/17/06

CHAPTER 56 — Swing JFrames

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.

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.