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);