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

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

Introduction

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

Usage

From source file Main.java

class MyTreeSelectionModel implements TreeSelectionModel {
    TreeSelectionModel selectionModel = new DefaultTreeSelectionModel();

    private boolean canPathBeAdded(TreePath treePath) {
        return treePath.getPathCount() > 2;
    }