getComponentAt(index).show();
if (comp != null) { Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) { if (children[i] == comp) { super.remove(i); comp.setVisible(true); break; } } } revalidate(); repaint();
  public void removeTabAt(int index)  {    checkIndex(index, 0, tabs.size());    tabs.remove(index);    getComponentAt(index).show();  }