FileDocCategorySizeDatePackage
TestColumnSelectableJTable.javaAPI DocExample1069Mon Jan 09 11:01:58 GMT 2006None

TestColumnSelectableJTable

public class TestColumnSelectableJTable extends Object

Fields Summary
private static final Object[]
items
private static final Object[]
headers
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


          
        JFrame f = new JFrame ("Selectable columns");
        ColumnSelectableJTable table = 
            new ColumnSelectableJTable(items, headers);
        JScrollPane scroller =
            new JScrollPane (table,
                             ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                             ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
        f.getContentPane().add (scroller);
        f.pack();
        f.setVisible(true);