}
@Override
protected void initGenericComponents() {
super.initGenericComponents();
ShapedGradientTheme theme = new ShapedGradientTheme(0f, 0f,
new FixedColorProvider(new Color(150, 150, 150)), null) {
public String getName() {
return super.getName();
}
};
titledTabProperties = new TitledTabProperties();
titledTabProperties.addSuperObject(theme.getTitledTabProperties());
tabbedPanel = new TabbedPanel();
TabListener listener = new TabListener() {
public void tabAdded(TabEvent arg0) {
// TODO Auto-generated method stub
}
public void tabDehighlighted(TabStateChangedEvent arg0) {
// TODO Auto-generated method stub
}
public void tabDeselected(TabStateChangedEvent arg0) {
// TODO Auto-generated method stub
}
public void tabDragAborted(TabEvent arg0) {
// TODO Auto-generated method stub
}
public void tabDragged(TabDragEvent arg0) {
// TODO Auto-generated method stub
}
public void tabDropped(TabDragEvent arg0) {
// TODO Auto-generated method stub
}
public void tabHighlighted(TabStateChangedEvent event) {
Main.setWaitCursor();
refreshTabs();
Main.setDefaultCursor();
}
public void tabMoved(TabEvent arg0) {
// TODO Auto-generated method stub
}
public void tabRemoved(TabRemovedEvent arg0) {
// TODO Auto-generated method stub
}
public void tabSelected(TabStateChangedEvent arg0) {
// TODO Auto-generated method stub
}
};
tabbedPanel.addTabListener(listener);
tabbedPanel.getProperties().addSuperObject(theme.getTabbedPanelProperties());
}