Advertisement

Summary

This chapter introduced AWT’s predefined layout managers FlowLayout, BorderLayout, GridLayout, GridBagLayout, and CardLayout, as well as Swing’s predefined layout managers BoxLayout, OverlayLayout, ScrollPaneLayout, ViewportLayout, and SpringLayout. You saw how the various alignment settings affect the components within a container whenever you use a layout manager such as BoxLayout or OverlayLayout. In addition, you were introduced to the SizeRequirements class, which is used internally by BoxLayout and OverlayLayout.

In Chapter 11, you’ll look at the JScrollPane and JViewport containers, which use the ScrollPaneLayout and ViewportLayout managers, plus several other sophisticated Swing container classes.

Keywords

Axis Point Extra Space Vertical Alignment Prefer Size Horizontal Alignment 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© John Zukowski 2005

Personalised recommendations