Using JTree to select information

In the previous post we looked at displaying information in a hierarchy using JTree.

JTree Hierarchy using TreeNode
JTree Hierarchy using TreeNode

Now all this is fine but, usually when we use a JTree it is because we want to be able to select an item, one or more.  For our example let us concern ourselves with selecting a single item and displaying the detail associated with that item. Continue reading “Using JTree to select information”

Advertisements
Using JTree to select information