Trees in Swing
A useful means of visualizing hierarchical information is through the javax.swing.tree.JTree
- JTree: The tree reference
-
- DefaultTreeModel -- how the tree works/looks/acts
-
- DefaultMutableTreeNodeClass -- information (leaves and nodes) of the Tree
-
-
Let’s see how these work in a simple tree