org.yasl.layout
Class YASLMultiColumnLayout
java.lang.Object
org.yasl.layout.YASLMultiColumnLayout
- public class YASLMultiColumnLayout
- extends Object
Use this class to layout columns of controls that you want to
line-up horizontally. For example, you might have a column of
labels and another column of corresponding input controls. This
class can be used to line up the corresponding controls even if
the number of controls in the two lists are not equal in number.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layoutContainer
public static void layoutContainer(JPanel parentContainer,
JComponent[] cOneItems,
JComponent[] cTwoItems,
int vgap,
int hgap)
IMPORTANT: The size of the three arrays must be identical.
Use null to fill in empty components.
- Parameters:
parentContainer
- JPanelcOneItems
- JComponent[]cTwoItems
- JComponent[]vgap
- inthgap
- int