Path: blob/master/src/demo/share/jfc/SampleTree/README.txt
41149 views
SampleTree demonstrates JTree features. Each node of SampleTree has 71children, with each one drawn in a random font and color. Each node is2named after its font. While the data isn't interesting, the example3illustrates a number of features:45- Dynamically loading children (see DynamicTreeNode.java)6- Adding/removing/inserting/reloading (see the following inner7classes in SampleTree.java: AddAction, RemoveAction, InsertAction,8and ReloadAction)9- Creating a custom cell renderer (see SampleTreeCellRenderer.java)10- Subclassing JTreeModel for editing (see SampleTreeModel.java)111213To run the SampleTree demo:1415java -jar SampleTree.jar1617These instructions assume that this installation's version of the java18command is in your path. If it isn't, then you should either19specify the complete path to the java command or update your20PATH environment variable as described in the installation21instructions for the Java(TM) SE Development Kit.22232425