static JTree jtree_collapseAndOpenRootNode(final JTree tree) { if (tree != null) swing { TreePath rootPath = new(jDynamicTree_root(tree)); tree.collapsePath(rootPath); tree.expandPath(rootPath); } ret tree; }