Summary

AWT components extend java.awt.Component—a collection of basic, useful components for implementing user interfaces. All of the components are heavyweight components that have peers and render themselves in their own native, opaque windows. The AWT provides support for implementing lightweight components, but does not provide any specific lightweight components.[10]

[10] The Swing set of components is a collection of mostly lightweight components.

java.awt.Component provides a great deal of functionality for its extensions, from setting/getting background/foreground colors to tracking location and size, to attaching cursors, to zordering components; the Component class covers a fair bit of ground.

Now that we've covered the Component class, ...

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.