TreePath oldLead = leadPath; leadIndex = 0; leadRow = getRow(path); leadPath = path;  TreeSelectionEvent event;  if (ose != null && ose.length > 0) {   TreePath[] changed = new TreePath[ose.length + 1]; boolean[] news = new boolean[changed.length]; news[0] = true; changed[0] = path; System.arraycopy(ose, 0, changed, 1, ose.length); event = new TreeSelectionEvent(this, changed, news, oldLead, path); } else { event = new TreeSelectionEvent(this, path, true, oldLead, path); } fireValueChanged(event);
  public void setSelectionPath(TreePath path)  {    selection = new TreePath[] { path };  }