|
@@ -765,6 +765,8 @@ public class GUI<E> implements CategoryListener {
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
if (panelTapped_SimMenu
|
|
|
.getComponent(panelTapped_SimMenu.getComponentCount() - 1) instanceof JSplitPane) {
|
|
|
+ Component tempC = tabbedPane2.getSelectedComponent();
|
|
|
+ tabbedPane.setComponentAt(tabbedPane2.getSelectedIndex(), tempC);
|
|
|
tabbedPane2.removeAll();
|
|
|
panelTapped_SimMenu
|
|
|
.remove(panelTapped_SimMenu.getComponent(panelTapped_SimMenu.getComponentCount() - 1));
|
|
@@ -773,11 +775,21 @@ public class GUI<E> implements CategoryListener {
|
|
|
for (int i = 0; i < tabbedPane.getTabCount(); i++) {
|
|
|
tabbedPane2.addTab(tabbedPane.getTitleAt(i), null);
|
|
|
}
|
|
|
+ if (tabbedPane.getSelectedComponent() == statScrollPane) {
|
|
|
+ tabbedPane.setComponentAt(0,null);
|
|
|
+ tabbedPane2.setComponentAt(0, canvasSP);
|
|
|
+ tabbedPane2.setSelectedIndex(0);
|
|
|
+ } else {
|
|
|
+ tabbedPane.setComponentAt(1,null);
|
|
|
+ tabbedPane2.setComponentAt(1, statScrollPane);
|
|
|
+ tabbedPane2.setSelectedIndex(1);
|
|
|
+ }
|
|
|
JSplitPane tempSplit = new JSplitPane();
|
|
|
tempSplit.setBorder(null);
|
|
|
tempSplit.setRightComponent(tabbedPane2);
|
|
|
tempSplit.setLeftComponent(tabbedPane);
|
|
|
tempSplit.setDividerLocation(tabbedPane.getWidth()/2);
|
|
|
+ tempSplit.setResizeWeight(0.9);
|
|
|
panelTapped_SimMenu.remove(tabbedPane);
|
|
|
panelTapped_SimMenu.add(tempSplit);
|
|
|
}
|