layout();
revalidate();
  public void insertTab(String title, Icon icon, Component component,                        String tip, int index)  {    if (title == null)      title = "";    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.    if (component != null)      {	component.hide();	super.add(component);      }    if (getSelectedIndex() == -1)      setSelectedIndex(0);    layout();    repaint();  }