Parent Directory | Revision Log | Patch
revision 1.12 by rabbit78, Mon Jul 11 20:09:10 2005 UTC | revision 1.13 by langel, Mon Jul 11 20:40:55 2005 UTC | |
---|---|---|
# | Line 838 public class Demo | Line 838 public class Demo |
838 | child2.add(child24); | child2.add(child24); |
839 | ||
840 | JTree tree = new JTree(root); | JTree tree = new JTree(root); |
841 | tree.setRootVisible(true); | |
842 | tree.setLargeModel(true); | |
843 | DefaultTreeSelectionModel dtsm = new DefaultTreeSelectionModel(); | |
844 | dtsm.setSelectionMode(DefaultTreeSelectionModel.SINGLE_TREE_SELECTION); | |
845 | tree.setSelectionModel(dtsm); | |
846 | ||
847 | return tree; | return tree; |
848 | } | } |
849 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |