img
NOTE  If you have not yet read Chapter 22, please do so now. It provides an overview of event
OTE
handling, which is used by many of the examples in this chapter.
AWT Classes
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
AWT classes.
Class
Description
AWTEvent
Encapsulates AWT events.
AWTEventMulticaster
Dispatches events to multiple listeners.
BorderLayout
The border layout manager. Border layouts use five components:
Nor th, South, East, West, and Center.
Button
Creates a push button control.
Canvas
A blank, semantics-free window.
CardLayout
The card layout manager. Card layouts emulate index cards.
Only the one on top is showing.
Checkbox
Creates a check box control.
CheckboxGroup
Creates a group of check box controls.
CheckboxMenuItem
Creates an on/of f menu item.
Choice
Creates a pop-up list.
Color
Manages colors in a por table, platform-independent fashion.
Component
An abstract superclass for various AWT components.
Container
A subclass of Component that can hold other components.
Cursor
Encapsulates a bitmapped cursor.
Dialog
Creates a dialog window.
Dimension
Specifies the dimensions of an object. The width is stored in width,
and the height is stored in height.
Event
Encapsulates events.
EventQueue
Queues events.
FileDialog
Creates a window from which a file can be selected.
FlowLayout
The flow layout manager. Flow layout positions components left
to right, top to bottom.
Font
Encapsulates a type font.
FontMetrics
Encapsulates various information related to a font. This information
helps you display text in a window.
Frame
Creates a standard window that has a title bar, resize corners, and
a menu bar.
TABLE 23-1
A Sampling of AWT Classes
Search WWH :
Custom Search
Previous Page
Java SE 6 Topic Index
Next Page
Java SE 6 Bookmarks
Home