setRootVisible(tree.isRootVisible()); treeState.setRootVisible(tree.isRootVisible());
  public void installUI(JComponent c)  {    tree = (JTree) c;    prepareForUIInstall();    super.installUI(c);    installDefaults();    installComponents();    installKeyboardActions();    installListeners();    setCellEditor(createDefaultCellEditor());    createdCellEditor = true;    isEditing = false;        setModel(tree.getModel());    treeSelectionModel = tree.getSelectionModel();    completeUIInstall();  }