Skip to main content

The Layout Managers

  • Chapter
Essential Java 2 fast

Part of the book series: Essential Series ((ES))

  • 578 Accesses

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

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics