super.remove(component);
int index = indexOfComponent(component);      if (index == -1) { Component[] cs = getComponents(); for (int i = 0; i< cs.length; i++) if (cs[i] == component) super.remove(i); } else removeTabAt(index);
  public void remove(Component component)  {    super.remove(component);  }