Chapter 12. Layout Managers

Topics in This Chapter

  • How layout managers simplify interface design

  • The FlowLayout manager

  • The BorderLayout manager

  • The GridLayout manager

  • The CardLayout manager

  • The GridBagLayout manager

  • The BoxLayout manager

  • Hand-positioning components

  • Strategies for using layout managers effectively

When a Container is created in the Java programming language, the container automatically gets an associated helper object known as a layout manager to give sizes and positions to the components inside it. The layout manager is intended to free the programmer from the burden of positioning each component pixel-by-pixel when the components may be different sizes on different platforms, when the main windows may be interactively resized or customized ...

Get Core Web Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.