The Big Three of the AWT

To really get your teeth into the AWT, you're going to have to deal with components, containers, and layout managers in a fairly sophisticated fashion. This means you're going to have to be sensitive to the nuances of their relationship to one another. Primarily, you need to know where one stops working for you and where another starts.

A component contained in a container is quite likely to be subjected to a life of stretching, squashing, and being moved about. Although you might suspect the component's container of dishing out such punishment, containers are spatially challenged; they delegate the laying out—sizing and positioning—of their components to a layout manager. A container's layout manager is the sole force ...

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.