Example usage for javax.swing.tree TreeModel interface-usage

List of usage examples for javax.swing.tree TreeModel interface-usage

Introduction

In this page you can find the example usage for javax.swing.tree TreeModel interface-usage.

Usage

From source file DOMTreeTest.java

    /**
     * This tree model describes the tree structure of an XML document.
     */
    class DOMTreeModel implements TreeModel {
        /**
         * Constructs a document tree model.

From source file GenealogyExample.java

class GenealogyModel implements TreeModel {
    private boolean showAncestors;

    private Vector treeModelListeners = new Vector();

    private Person rootPerson;

From source file GenealogyExample.java

class GenealogyModel implements TreeModel {
    private boolean showAncestors;
    private Vector<TreeModelListener> treeModelListeners = new Vector<TreeModelListener>();
    private Person rootPerson;

    public GenealogyModel(Person root) {