}
final MyModel m=new MyModel(10,10,100);
final JXTwoLevelSplitTable t=new JXTwoLevelSplitTable("test",m,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
p.add(t,"growx,growy,wrap");
m.addColumnWidthListener(new AbstractSplitTableModel.ColumnWidthListener() {
public void prefferedWidthForColumn(int col, int width) {
//logger.info("col: "+col+", width: "+width);
t.getColumnExt(col, true).setPreferredWidth(width);
//t.getColumnExt(col, true).setWidth(width);
}
});
//m.fireTableStructureChanged();
//t.getColumnExt(0, false).setPrototypeValue("Abcdefghijklmnopqrstuvwxyz Abcdefghijklmnopqrstuvwxyz");
//Object q=t.getColumnExt(0, false).getPrototypeValue();
t.getColumnExt(0, true).setPreferredWidth(300);
//t.doLayout();
//t.packColumn(0,10, false);
//JXTable tt;
//tt.packColumn(column, margin)
//t.setNodeIconColor(Color.RED);
t.addSelectionListener(new JXSplitTable.SelectionListener() {
public void choosen(int row, int col, boolean left) {
//logger.info(String.format("Choosen : row=%d, col=%d, left=%d",row,col,(left)?1:0));
System.out.println(String.format("Choosen : row=%d, col=%d, left=%d",row,col,(left)?1:0));
m.fireTableStructureChanged();
//t.doLayout();