panel.setLayout(new BorderLayout());
panel.add(component, BorderLayout.CENTER);
super.addTab(title, icon, panel, tip);
int count = this.getTabCount() - 1;
if (component instanceof ConfigurationGUI) {
ConfigurationGUI configGui = ((ConfigurationGUI) component);
boolean isEnabled = configGui.isEnabled();
setTabComponentAt(count, new CloseSaveButtonTab(panel, title, icon, (ConfigurationGUI) component, isExpert,
isEnabled));
}
}