Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); workspace.expandPath(new TreePath(node.getPath())); }
Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); workspace.expandPath(new TreePath(node.getPath()));
    private void expandTree() {      Enumeration nodes = root.depthFirstEnumeration();      while (nodes.hasMoreElements()) {	DefaultMutableTreeNode node = 	  (DefaultMutableTreeNode)nodes.nextElement();	workspace.expandPath(new TreePath(node.getPath()));      }    }