public static void setTableSorter(KDTable table) {
table.checkParsed();
KDTSortManager sm = new KDTSortManager(table);
sm.setEnableSortable(true);
sm.setSortAuto(true);
for(int i = 0; i < table.getColumnCount(); ++i) {
table.getColumn(i).setSortable(true);
}
}
table.checkParsed();
KDTSortManager sm = new KDTSortManager(table);
sm.setEnableSortable(true);
sm.setSortAuto(true);
for(int i = 0; i < table.getColumnCount(); ++i) {
table.getColumn(i).setSortable(true);
}
}