org.yasl.layout
Class YASLMultiColumnLayout

java.lang.Object
  extended byorg.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.


Method Summary
static void layoutContainer(JPanel parentContainer, JComponent[] cOneItems, JComponent[] cTwoItems, int vgap, int hgap)
           IMPORTANT: The size of the three arrays must be identical.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 - JPanel
cOneItems - JComponent[]
cTwoItems - JComponent[]
vgap - int
hgap - int