1 package wjhk.jupload2.gui.filepanel.treeview;
2
3 import javax.swing.ListSelectionModel;
4 import javax.swing.event.ListSelectionEvent;
5 import javax.swing.event.ListSelectionListener;
6 import javax.swing.tree.DefaultTreeSelectionModel;
7
8
9
10
11
12
13
14
15
16
17
18
19 public class MyTreeTableSelectionModel extends DefaultTreeSelectionModel {
20
21 private static final long serialVersionUID = 1L;
22
23 public MyTreeTableSelectionModel() {
24 super();
25
26 getListSelectionModel().addListSelectionListener(new ListSelectionListener() {
27
28 public void valueChanged(ListSelectionEvent e) {
29 System.out.print("[DEBUG] ListSelectionEvent: " + e + "\n");
30 }
31 });
32 }
33
34 ListSelectionModel getListSelectionModel() {
35 return listSelectionModel;
36 }
37 }