component.show(); setComponentAt(index, null);
  public void remove(Component component)  {    // This simply removes the component.    int index = indexOfComponent(component);    super.remove(component);    component.show();    setComponentAt(index, null);  }