To create a graphical user interface with Swing, knowledge of the different types of Swing components and how they work is required. Swing offers a wide variety of components that can be used to easily construct many interesting GUIs. Some of the components we will be discussing are:
To make all of these different components come together as a user interface, you need to
understand the concept of a containment hierarchy. A

Here is the containment hierarchy for the sample user interface, with the panels appropriately shaded to match:

JFC and Swing
Frames: The JFrame Class
Back to the introduction
Copyright (C) 2000 - 2002, The University of British Columbia