Demonstrates how to build panels that honor or ignore the current
component orientation: left-to-right vs. right-to-left.
This example uses a utility class that may be moved to the extras or
to the Forms core in a future version. The tricky part is the abstract
definition of column specifications and cell constraints.
The example below utilizes the OrientationUtils to flip
column specification defaul alignments and to reverse the order of
column specifications. Cell constraints need to be adjusted too; this
example avoids the problem by using a builder that creates all
cell constraints.
You can find information about the latest additions regarding the
Forms support for different component orientations in the comments for
issue #2.
author: Karsten Lentzsch version: $Revision: 1.11 $ See Also: com.jgoodies.forms.builder.AbstractFormBuilder See Also: com.jgoodies.forms.builder.DefaultFormBuilder |