Java JTree Path isSource(TreePath path)

Here you can find the source of isSource(TreePath path)

Description

is Source

License

Open Source License

Declaration

public static boolean isSource(TreePath path) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.tree.TreePath;

public class Main {
    public static boolean isSource(TreePath path) {
        int pathCount = path.getPathCount();
        return (pathCount == 2);
    }/*from   www  . j  ava  2 s .  c  o m*/
}

Related

  1. getUserObject(TreePath path)
  2. getUserObject(TreePath path)
  3. isDescendant(TreePath path1, final TreePath path2)
  4. isDescendant(TreePath path1, final TreePath path2)
  5. isFile(TreePath path)
  6. isTreePathContainedInExpansionState(TreePath treePath, ArrayList expansionStateStrings)
  7. lastPathComponents(TreePath[] paths)
  8. loadExpansionState(JTree tree, Enumeration expansionState)
  9. makeLocalFilePath(TreePath treePath)