repaint();
  public void insertTab(String title, Icon icon, Component component,                        String tip, int index)  {    Page p = new Page(title, icon, component, tip);    tabs.insertElementAt(p, index);    // Hide the component so we don't see it. Do it before we parent it    // so we don't trigger a repaint.    component.hide();    super.add(component);      if (getSelectedIndex() == -1)      setSelectedIndex(0);    layout();  }