drew moore
drew moore

Reputation: 32670

manually altering vertical groups in GroupLayout

I've designed a Swing GUI using the NetBeans designer, meaning that it's a GroupLayout. I would like to go in and manually change the elements in one of the vertical groups it created, however that code is uneditable and I don't see anything in the properties dialog that would allow me to do this. Any suggestions?

Upvotes: 1

Views: 60

Answers (1)

trashgod
trashgod

Reputation: 205785

GroupLayout has very limited code-generation property support in the GUI designer; the generated code depends almost entirely on designer positioning. You may want to examine the properties available to other layouts for comparison, e.g. GridBagLayout.

While it's tempting to use the designer for the entire GUI, you may want to consider the approach shown here, in which use of the designer is limited to one (or a few) panels in a single top-level container.

Upvotes: 1

Related Questions