Appendix H. GroupLayout

H.1 Introduction

Java SE 6 introduced a powerful layout manager called GroupLayout, which is the default layout manager in the NetBeans IDE ( In this appendix, we overview GroupLayout, then demonstrate how to use the NetBeans IDE’s Matisse GUI designer to create a GUI using GroupLayout to position the components. NetBeans generates the GroupLayout code for you automatically. Though you can write GroupLayout code by hand, in most cases you’ll use a GUI design tool like the one provided by NetBeans to take advantage of GroupLayout’s power. For more details on GroupLayout, see the list of web resources at the end of this appendix.

H.2 GroupLayout Basics

Chapters 14 and 22 presented several layout managers ...

Get Java™ for Programmers: Deitel Developer Series, 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.