Abstract
If you have tried some of the applets in the previous chapter, you will have found that the applets functioned correctly, but that the layout of the components may have been different. On looking more closely at these applets you will see that the components are added from left to right and when the first row is full the next component to be added is placed in the row below. This is the default layout for Panel objects and is called FlowLayout. There are five layout managers defined for AWT components which we are going to look at in this chapter:
-
FlowLayout
-
BorderLayout
-
CardLayout
-
GridLayout
-
GridBagLayout
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1999 Springer-Verlag London
About this chapter
Cite this chapter
Cowell, J. (1999). The Layout Managers. In: Essential Java 2 fast. Essential Series. Springer, London. https://doi.org/10.1007/978-1-4471-0573-2_11
Download citation
DOI: https://doi.org/10.1007/978-1-4471-0573-2_11
Publisher Name: Springer, London
Print ISBN: 978-1-85233-071-2
Online ISBN: 978-1-4471-0573-2
eBook Packages: Springer Book Archive