public String openAll() {
final Enumeration enumeration = tree.depthFirstEnumeration();
while (enumeration.hasMoreElements()) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) enumeration.nextElement();
if (!node.isLeaf()) {
Node userObject = (Node) node.getUserObject();
userObject.setExpanded(true);
}
}
return null;
}