Developing with the SDK > Using and Writing Data Models > NonJavaBeans Example: Abstract Model Variant > The Tree Model Example

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 Figure 2.4.

images/diaext_tree.png

Figure 2.4 The Tree Model Example: Swing JTree

This example uses the base class IlvAbstractSDMModel and implements nodes and links using the IlvSDMNode and IlvSDMLink interfaces, for the following reasons:

The example is supplied with ILOG JViews Diagrammer in the directory <installdir>/jviews-diagrammer81/codefragments/datamodel/treemodel.