Method getSelectionModel()
Return type: javax.swing.tree.TreeSelectionModel
Member of: javax.swing.JTree
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 getSelectionModel().
2 getSelectionModel().
3 return tree_.getSelectionModel().getSelectionPaths();
4 tree.getSelectionModel().setSelectionPaths(treePaths);
5 tree.getSelectionModel().removeTreeSelectionListener(managerListener);
6 getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
7 getSelectionModel().removeTreeSelectionListener( this );
8 this.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
9 TreePath[] paths = (TreePath[]) win_.getTree().getSelectionModel().getSelectionPaths();
10 sessionList.getSelectionModel().
11 getSelectionModel().setSelectionMode
12 jTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
13 mTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
14 getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
15 TreeSelectionModel model = trFileTree.getSelectionModel();
16 pTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
17 dTree.getSelectionModel().setSelectionMode(DefaultTreeSelectionModel.SINGLE_TREE_SELECTION);
18 getTree().getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
19 getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION );
20 getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.