}
  public void setSelectedIndex(int index)  {    checkIndex(index, -1, tabs.size());    if (index != getSelectedIndex())      {	if (getSelectedIndex() != -1)	  getSelectedComponent().hide();	if (index != -1)	  getComponentAt(index).show();      }    model.setSelectedIndex(index);  }