Skip to main content

GroupLayout: how to add a indented gap

No replies
tsinger
Offline
Joined: 2003-06-10

According to my understanding, adding a related (or unrelated accordingly) gap is done by
sequentialGroup.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED);
Unfortunately, there seems to be a design-flaw, because the third enum value INDENTED must not be passed as a parameter.

How do I create an INDENTED gap?