- // Use reflection to call distTable.setAutoCreateRowSorter(true) which is new with Java 1.6
- try {
- Class<?> d = Class.forName("javax.swing.JTable");
- d.getDeclaredMethod("setAutoCreateRowSorter", new Class[]{Boolean.TYPE}).invoke(distTable, Boolean.TRUE);
- }
- catch (Exception e) {}