Components—The Foundation of the AWT

The AWT is a world of components; approximately half of the classes in the AWT are extensions of the java.awt.Component class. The Component class and its supporting cast are the foundation upon which the AWT is built:

  • Component – An abstract base class for components such as menus, buttons, labels, lists, and so on.

  • Container – An abstract base class that extends Component. Classes derived from Container, most notably Panel, Applet, Window, Dialog, and Frame, can contain multiple components.

  • LayoutManager – An interface that defines methods for positioning and sizing objects within a container. Java defines several default implementations of the LayoutManager interface.

  • Graphics class – An abstract class that ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition 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.