0N/ASampleTree demonstrates JTree features. Each node of SampleTree has 7
0N/Achildren, with each one drawn in a random font and color. Each node is
0N/Anamed after its font. While the data isn't interesting, the example
0N/Aillustrates a number of features:
0N/A
0N/A- Dynamically loading children (see DynamicTreeNode.java)
0N/A- Adding/removing/inserting/reloading (see the following inner
0N/A classes in SampleTree.java: AddAction, RemoveAction, InsertAction,
0N/A and ReloadAction)
0N/A- Creating a custom cell renderer (see SampleTreeCellRenderer.java)
0N/A- Subclassing JTreeModel for editing (see SampleTreeModel.java)
0N/A
0N/A
0N/ATo run the SampleTree demo:
0N/A
0N/A java -jar SampleTree.jar
0N/A
0N/AThese instructions assume that this installation's version of the java
0N/Acommand is in your path. If it isn't, then you should either
0N/Aspecify the complete path to the java command or update your
0N/APATH environment variable as described in the installation
0N/Ainstructions for the Java(TM) SE Development Kit.
0N/A