NOTE If you have not yet read Chapter 22, please do so now. It provides an overview of event
handling, which is used by many of the examples in this chapter.
The AWT classes are contained in the java.awt package. It is one of Java's largest packages.
Fortunately, because it is logically organized in a top-down, hierarchical fashion, it is easier
to understand and use than you might at first believe. Table 23-1 lists some of the many
Encapsulates AWT events.
Dispatches events to multiple listeners.
The border layout manager. Border layouts use five components:
Nor th, South, East, West, and Center.
Creates a push button control.
A blank, semantics-free window.
The card layout manager. Card layouts emulate index cards.
Only the one on top is showing.
Creates a check box control.
Creates a group of check box controls.
Creates an on/of f menu item.
Creates a pop-up list.
Manages colors in a por table, platform-independent fashion.
An abstract superclass for various AWT components.
A subclass of Component that can hold other components.
Encapsulates a bitmapped cursor.
Creates a dialog window.
Specifies the dimensions of an object. The width is stored in width,
and the height is stored in height.
Creates a window from which a file can be selected.
The flow layout manager. Flow layout positions components left
to right, top to bottom.
Encapsulates a type font.
Encapsulates various information related to a font. This information
helps you display text in a window.
Creates a standard window that has a title bar, resize corners, and
a menu bar.
A Sampling of AWT Classes
Search WWH :