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

Custom Layout Managers

While Although the AWT's standard layout managers are well equipped to handle most layout situations, there comes a time when they just won't do. You will also find that for certain types of layouts, it is simpler to use a custom layout manager that deals with an exact type of layout than it is to use one of the AWT's layout managers, even though one of them may suffice.

A custom layout manager involves implementing the LayoutManager or LayoutManager2 interfaces.

We've discussed each of these methods in detail earlier in this chapter, so instead of rehashing the responsibilities of each method, let's take a look at some custom layout managers that implement them.

BulletinLayout

This section describes a layout manager—

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