View Javadoc
1   package edu.jiangxin.apktoolbox.swing.treetable;
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   public class MyTreeTableSelectionModel extends DefaultTreeSelectionModel {
9   
10      public MyTreeTableSelectionModel() {
11          super();
12  
13          getListSelectionModel().addListSelectionListener(new ListSelectionListener() {
14              @Override
15              public void valueChanged(ListSelectionEvent e) {
16  
17              }
18          });
19      }
20  
21      ListSelectionModel getListSelectionModel() {
22          return listSelectionModel;
23      }
24  }