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 ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.