Hi Paul,
GroupLayout has no direct support for indentation. You have to
retrieve the indentation gap from LayoutStyle, and set it as a fixed
size gap to GroupLayout.
Here is a code snippet showing how to indent a label underneath a
radio button:
.add(LayoutStyle.getSharedInstance().getPreferredGap(radioButton,
label, LayoutStyle.INDENT, SwingConstants.EAST, this))
Hope this helps,
Werner
On 05.07.2007, at 17:00, Paul Taylor wrote:
Im wondering if the javadoc is wrong and if INDENT is just used by
LayoutStyle.getPreferredGap() to provide the value for the indent,
which you then have to incorporate into your layout manually...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden