created: 3/24/99 (using AWT), major revision: 01/06/02 (using Swing), small edits: 02/03/04, 02/12/05, 07/17/06; refurbished: 11/01/08
A
JFrame
represents the window of a GUI application program.
It can hold the
components and methods that your application needs.
This chapter introduces these ideas.
JFrame class.setSize() method.setBounds() method.setVisible() method.setDefaultCloseOperation() method.JFrame classJLabel class.It may be helpful at times to refer back to the class hierarchy diagrams of the previous chapter.
(Review: ) Is JFrame part of Swing?