List of usage examples for javax.swing.tree TreeSelectionModel interface-usage
From source file Main.java
class MyTreeSelectionModel implements TreeSelectionModel { TreeSelectionModel selectionModel = new DefaultTreeSelectionModel(); private boolean canPathBeAdded(TreePath treePath) { return treePath.getPathCount() > 2; }