}
}
protected void initComponents() {
final TabbedContentPane tabbedContentPane = new TabbedContentPane(true);
tabbedContentPane.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (!valueAdjusting && !contentValueAdjusting && !tabbedContentPane.valueAdjusting) {
int selectedIndex = tabbedContentPane.getSelectedIndex();
if (selectedIndex == -1)
return;
Content newSelected = tabbedContentPane.getContentAt(selectedIndex);
if (newSelected == lastSelected)
return;
/*
if (lastSelected != null) {
try {
// lastSelected.fireSelected(false);
lastSelected.setSelected(false);
} catch (Exception ignoreIt) {
}
}
*/
if (newSelected != null && !newSelected.isMinimized()) {
// newSelected.fireSelected(true);
newSelected.setSelected(true);
}
lastSelected = newSelected;
}
}
});
tabbedContentPane.addTabbedContentPaneListener(new TabbedContentPaneListener() {
public ByteArrayOutputStream tmpWorkspace;
public void tabbedContentPaneEventFired(TabbedContentPaneEvent event) {
Content content = event.getContent();
switch (event.getActionId()) {