}
@Override
public void insertTab(String title, Icon icon, Component component, String tip, int index) {
super.insertTab(title, icon, component, tip, index);
MnemonicString mnemonicTitle = getMnemonicTitle(title);
JLabel tab = createTabComponent(mnemonicTitle, icon, tip);
setTabComponentAt(index, tab);
char c = mnemonicTitle.getMnemonic();
if (c != 0) {
setMnemonicAt(index, c);
}
tabComponents.add(index, tab);
updateCloseActions();