O'Reilly logo

Sams Teach Yourself Java™ 2 Platform in 21 Days Professional Reference Edition by Rogers Cadenhead, Laura Lemay

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

Chapter 12. Arranging Components on a User Interface

If designing a graphical user interface is comparable to painting, you currently can produce only one kind of art: abstract expressionism. You can put components onto an interface but you don't have much control over where they go.

In order to impose some kind of form on a interface designed with the Abstract Windowing Toolkit, you must use a set of classes called layout managers.

Today you learn how to use five layout managers to arrange components into an interface. You'll take advantage of the flexibility of Java's windowing toolkit, which was designed to be presentable on the many different platforms that support the language.

When one arrangement doesn't quite suit what you have in mind for ...

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