tree.expandPath(new TreePath(mod.getRoot()));
{ TreePath path = new TreePath(mod.getRoot()); if (!tree.isExpanded(path)) toggleExpandState(path); }
  public void installUI(JComponent c)  {    prepareForUIInstall();    super.installUI(c);    tree = (JTree) c;    installDefaults();    installComponents();    setCellEditor(createDefaultCellEditor());    createdCellEditor = true;    isEditing = false;        TreeModel mod = tree.getModel();    setModel(mod);    if (mod != null)      tree.expandPath(new TreePath(mod.getRoot()));    treeSelectionModel = tree.getSelectionModel();    installKeyboardActions();    installListeners();    completeUIInstall();  }