Example usage for javax.swing JTree subclass-usage

List of usage examples for javax.swing JTree subclass-usage

Introduction

In this page you can find the example usage for javax.swing JTree subclass-usage.

Usage

From source file DragDropTreeExample.java

class FileTree extends JTree implements Autoscroll {
    public static final Insets defaultScrollInsets = new Insets(8, 8, 8, 8);

    protected Insets scrollInsets = defaultScrollInsets;

    public FileTree(String path) throws FileNotFoundException, SecurityException {

From source file FileTreeDragSource.java

class FileTree extends JTree implements Autoscroll {
    public static final Insets defaultScrollInsets = new Insets(8, 8, 8, 8);

    protected Insets scrollInsets = defaultScrollInsets;

    public FileTree(String path) throws FileNotFoundException, SecurityException {

From source file org.objectstyle.cayenne.modeler.ProjectTreeView.java

/**
 * Panel displaying Cayenne project as a tree.
 */
public class ProjectTreeView extends JTree
        implements DomainDisplayListener, DomainListener, DataMapDisplayListener, DataMapListener,
        DataNodeDisplayListener, DataNodeListener, ObjEntityListener, ObjEntityDisplayListener, DbEntityListener,

From source file org.apache.cayenne.modeler.ProjectTreeView.java

/**
 * Panel displaying Cayenne project as a tree.
 */
public class ProjectTreeView extends JTree implements DomainDisplayListener, DomainListener, DataMapDisplayListener,
        DataMapListener, DataNodeDisplayListener, DataNodeListener, ObjEntityListener, ObjEntityDisplayListener,
        DbEntityListener, DbEntityDisplayListener, QueryListener, QueryDisplayListener, ProcedureListener,

From source file GenealogyExample.java

class GenealogyTree extends JTree {
    GenealogyModel model;

    public GenealogyTree(Person graphNode) {
        super(new GenealogyModel(graphNode));
        getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);

From source file GenealogyExample.java

class GenealogyTree extends JTree {
    GenealogyModel model;

    public GenealogyTree(Person graphNode) {
        super(new GenealogyModel(graphNode));
        getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);

From source file FileTreeDropTarget.java

class FileTree extends JTree implements Autoscroll {
    public static final Insets defaultScrollInsets = new Insets(8, 8, 8, 8);
    protected Insets scrollInsets = defaultScrollInsets;

    public FileTree(String path) throws FileNotFoundException, SecurityException {
        super((TreeModel) null); // Create the JTree itself