/usr/share/doc/openjdk-11-jre-headless/demo/jfc/SampleTree/README.txt is in openjdk-11-demo 10.0.1+10-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | SampleTree demonstrates JTree features. Each node of SampleTree has 7
children, with each one drawn in a random font and color. Each node is
named after its font. While the data isn't interesting, the example
illustrates a number of features:
- Dynamically loading children (see DynamicTreeNode.java)
- Adding/removing/inserting/reloading (see the following inner
classes in SampleTree.java: AddAction, RemoveAction, InsertAction,
and ReloadAction)
- Creating a custom cell renderer (see SampleTreeCellRenderer.java)
- Subclassing JTreeModel for editing (see SampleTreeModel.java)
To run the SampleTree demo:
java -jar SampleTree.jar
These instructions assume that this installation's version of the java
command is in your path. If it isn't, then you should either
specify the complete path to the java command or update your
PATH environment variable as described in the installation
instructions for the Java(TM) SE Development Kit.
|