List of usage examples for javax.swing JTree isRootVisible
public boolean isRootVisible()
From source file:org.eclipse.jubula.rc.swing.tester.util.TreeOperationContext.java
/** * {@inheritDoc}/*from w w w . ja v a2 s .c o m*/ */ public Object[] getRootNodes() { JTree tree = (JTree) getTree(); // If the root is visible, just return that. if (tree.isRootVisible()) { return new Object[] { tree.getModel().getRoot() }; } // If the root is not visible, return all direct children of the // non-visible root. return getChildren(tree.getModel().getRoot()); }