The Tree Model example displays the contents of a Swing
JTree object as a graph. The nodes of the graph are the items in the
tree (also called tree nodes), and the links of the graph represent
the parent-child relationships between the items., see the following
figure.
The nodes to be represented (the tree
nodes) are existing Java™
objects,
but they are not JavaBeans™
.
The links do not exist as Java objects;
you need to create them.