Kudos for embracing the NetBeans GUI designer as a means to—and not a substitute for—understanding Swing. Summarizing the comments,
-
While
GroupLayout
was designed for automated code generation, it can usefully be used manually, as shown here and here. It can also be integrated into the mixed development approach suggested here. -
Experienced developers wisely suggest learning one or more popular third-party layouts such as
MigLayout
,FormLayout
orDesignGridLayout
, which derive some power from accepting human-readable text parameters. I seeGroupLayout
in the same category, but simply having a fluent interface. -
In your example, the two layouts have differing resize behavior, which may impact other choices. Beware of this common pitfall.