home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / J A V A / Java Development Kit V1.2 / jdk12-win32(1).exe / data1.cab / demos / demo / jfc / SampleTree / README.txt < prev    next >
Encoding:
Text File  |  1998-12-01  |  951 b   |  28 lines

  1. SampleTree demonstrates JTree features.  Each node of SampleTree has 7
  2. children, with each one drawn in a random font and color.  Each node is
  3. named after its font.  While the data isn't interesting, the example
  4. illustrates a number of features:
  5.  
  6. - Dynamically loading children (see DynamicTreeNode.java)
  7. - Adding/removing/inserting/reloading (see the following inner
  8.   classes in SampleTree.java: AddAction, RemoveAction, InsertAction,
  9.   and ReloadAction)
  10. - Creating a custom cell renderer (see SampleTreeCellRenderer.java)
  11. - Subclassing JTreeModel for editing (see SampleTreeModel.java)
  12.  
  13.  
  14. To run the SampleTree demo on 1.2:
  15.   java SampleTree
  16.  
  17. To run the SampleTree demo on 1.1.x on Solaris:
  18.   setenv SWING_HOME <path to swing release>
  19.   setenv JAVA_HOME <path to jdk1.1.x release>
  20.   runnit
  21.  
  22.  
  23. To run the SampleTree demo on 1.1.x on win32:
  24.   set CLASSPATH=<path to jdk1.1.x release>\lib\classes.zip
  25.   set SWING_HOME=<path to swing release>
  26.   runnit
  27.  
  28.