List of usage examples for javax.swing JTree getExpandedDescendants
public Enumeration<TreePath> getExpandedDescendants(TreePath parent)
Enumeration
of the descendants of the path parent
that are currently expanded. From source file:Main.java
public static Enumeration<TreePath> saveExpansionState(JTree tree) { return tree.getExpandedDescendants(new TreePath(tree.getModel().getRoot())); }