Working with AWT Containers

A container is one of the most important class supertypes in AWT. This supertype class is used to provide containership for all components managed by it. The most common containers are frames, panels, and dialog boxes. Containers are also components, so as with other components, you interact with them by getting and setting their properties, calling their methods, and responding to their events. In addition to containers managing GUI components, they can also manage non-GUI components, including menus, for example. Table 10.1 lists many of the Java containers derived from the Container class.

Table 10.1. AWT Container Subclasses
Class Description
Applet An extension of Panel. The class is used to render an applet ...

Get Borland® JBuilder™ Developer’s Guide 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.