O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required