Method setSelectionPath(TreePath path)
Return type: void
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 setSelectionPath(path);
2 setSelectionPath(path);
3 setSelectionPath(path);
4 tree.setSelectionPath(path);
5 setSelectionPath(path);
6 setSelectionPath(p);
7 setSelectionPath( path);
8 guiPackage.getMainFrame().getTree().setSelectionPath(
9 _tree.setSelectionPath(path);
10 setSelectionPath(selPath);
11 setSelectionPath(new TreePath(new Object[]{model.getRoot(), demoNode,
12 lComponent.setSelectionPath(lPath);
13 tree.setSelectionPath(path); // show it by selecting
14 jtree.setSelectionPath(path);
15 tree.setSelectionPath (paths[0].getParentPath ());
16 tree.setSelectionPath(path);
17 myJtree.setSelectionPath(tp); // select what the user clicked on (so later we can see what is selected)
18 trFileTree.setSelectionPath( path );
19 jTree1.setSelectionPath(selPath);
20 m_tree.setSelectionPath(newpath);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.