docs: public static void expandAll(JTree tree, TreePath path, boolean expand)
  	{
  		TreeNode node = (TreeNode)path.getLastPathComponent();
  
  		if (node.getChildCount() >= 0)
  		{
  			Enumeration<?> enumeration = node.children();
  			while (enumeration.hasMoreElements())
  			{
  				TreeNode n = (TreeNode)enumeration.nextElement();
  				TreePath p = path.pathByAddingChild(n);
  
  				expandAll(tree, p, expand);
  			}
  		}
  
  		if (expand)
  		{
  			tree.expandPath(path);
  		}
  		else
  		{
  			tree.collapsePath(path);
  		}
  	}