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