code: public AjaxCloseableTabbedPanel<T> setSelectedTab(final int index)
  	{
  		if ((index < 0) || (index >= tabs.size()))
  		{
  			throw new IndexOutOfBoundsException();
  		}
  
  		setDefaultModelObject(index);
  
  		// force the tab's component to be aquired again if already the current tab
  		currentTab = -1;
  		setCurrentTab(index);
  
  		return this;
  	}
docs: sets the selected tab
  
  @param index
  index of the tab to select
  @return this for chaining
  @throws IndexOutOfBoundsException
  if index is not in the range of available tabs