O'Reilly logo

Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition by Rogers Cadenhead

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

Day 11. Arranging Components on a User Interface

If designing a graphical user interface (GUI) were comparable to painting, currently you could produce only one kind of art: abstract expressionism. You can put components on an interface, but you can’t control where they go.

To arrange the components of a user interface in Java, you must use a set of classes called layout managers.

Today, you will learn how to use layout managers to arrange components in an interface. You will take advantage of the flexibility of Java’s graphical user interface capabilities, which were designed to be presentable on the many platforms that support the language.

You also will learn how to put several layout managers to work on the same interface. This approach is ...

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