Summary

The AWT is a platform-independent window toolkit. It relies on peers, which are native windowing components that are delegated to by AWT classes. Although their presence influences the development of graphical applets and applications, you do not generally need to deal directly with peers.

There are four main classes in the Java Abstract Window Toolkit: the Component class, Container class, Graphics class, and the LayoutManager (and LayoutManager2) interfaces.

Containers contain components, and layout managers position and shape the components contained in a container. The Graphics class provides the means to display text and graphics within a component. These classes and the relationships between them form the foundation of the AWT. ...

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.