src/demo/share/jfc/SampleTree/README.txt
author coleenp
Wed, 08 Nov 2017 16:03:35 -0500
changeset 47813 fedbf1b866a7
parent 47216 71c04702a3d5
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
SampleTree demonstrates JTree features.  Each node of SampleTree has 7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
children, with each one drawn in a random font and color.  Each node is
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
named after its font.  While the data isn't interesting, the example
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
illustrates a number of features:
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
- Dynamically loading children (see DynamicTreeNode.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
- Adding/removing/inserting/reloading (see the following inner
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
  classes in SampleTree.java: AddAction, RemoveAction, InsertAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
  and ReloadAction)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
- Creating a custom cell renderer (see SampleTreeCellRenderer.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
- Subclassing JTreeModel for editing (see SampleTreeModel.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
To run the SampleTree demo:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
  java -jar SampleTree.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
These instructions assume that this installation's version of the java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
command is in your path.  If it isn't, then you should either
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
specify the complete path to the java command or update your
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
PATH environment variable as described in the installation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
instructions for the Java(TM) SE Development Kit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23