TreePath oldValue = leadSelectionPath; leadSelectionPath = path;
if (path != null) { repaint(getPathBounds(path)); selectionModel.addSelectionPath(path); }  if (oldValue!=null) repaint(getPathBounds(oldValue));
  public void setLeadSelectionPath(TreePath path)  {    if (leadSelectionPath == path)      return;        TreePath oldValue = leadSelectionPath;    leadSelectionPath = path;    firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path);  }