Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams
by Jamie Jaworski
Components and Containers
The AWT supports the development of GUIs through the use of components and containers. Components refer to visible user interface elements, such as labels, buttons, text fields, and scrollbars. Containers are components that contain and organize other components.
Examples of containers are windows, dialog boxes, and applets. In general, components extend the Component class and containers extend the Container class. Because containers are also components, the Container class is a subclass of the Component class. Some components extend the MenuComponent class, which is not a subclass of Component, but a separate component class hierarchy that is devoted to menu-related components. Figure 11.1 provides an overview of how ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access