}
  public void remove(Component comp)  {    synchronized (getTreeLock ())      {        for (int i = 0; i < ncomponents; ++i)          {            if (component[i] == comp)              {                remove(i);                break;              }          }      }  }