tree.removeMouseListener(mouseInputListener);
tree.removeMouseListener(mouseListener);
  protected void uninstallListeners()  {    tree.removePropertyChangeListener(propertyChangeListener);    tree.removeFocusListener(focusListener);    tree.removeTreeSelectionListener(treeSelectionListener);    tree.removeMouseListener(mouseInputListener);    tree.removeKeyListener(keyListener);    tree.removePropertyChangeListener(selectionModelPropertyChangeListener);    tree.removeComponentListener(componentListener);    tree.removeTreeExpansionListener(treeExpansionListener);    TreeCellEditor tce = tree.getCellEditor();    if (tce != null)      tce.removeCellEditorListener(cellEditorListener);    if (treeModel != null)      treeModel.removeTreeModelListener(treeModelListener);  }