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