if (index < 0 || index >= getTabCount())
throw new IndexOutOfBoundsException("Index: " + index + ", Content count: " + getTabCount());
}
protected void fireCloseTabEvent(MouseEvent e, int overTabIndex) {
TabEvent event = new TabEvent(this, TabEvent.ActionId.ON_CLOSE, getContent(overTabIndex), e, null, overTabIndex);
for (TabListener tabListener : getListeners(TabListener.class))
tabListener.tabEventFired(event);
}