diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-24 21:57:11 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-24 21:57:11 +0000 |
| commit | 7015fbd868d211e5688723e0de9efe933fcb5596 (patch) | |
| tree | 44517d2f6debf0869e4a67fa49aaaa7c456835ca /sources/simulator/VSSimulator.java | |
| parent | b8c91a880d3bb0ac98c897bf71c26106011923c3 (diff) | |
Bugfix
Diffstat (limited to 'sources/simulator/VSSimulator.java')
| -rw-r--r-- | sources/simulator/VSSimulator.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sources/simulator/VSSimulator.java b/sources/simulator/VSSimulator.java index 097d198..1422d4b 100644 --- a/sources/simulator/VSSimulator.java +++ b/sources/simulator/VSSimulator.java @@ -881,10 +881,8 @@ public class VSSimulator extends JPanel { } public void removeProcessAtIndex(int index) { - if (lastSelectedProcessNum >= index) + if (lastSelectedProcessNum > index) --lastSelectedProcessNum; - if (lastSelectedProcessNum < 0) - lastSelectedProcessNum = 0; globalTextFields.remove(index); localTextFields.remove(index); @@ -894,6 +892,8 @@ public class VSSimulator extends JPanel { processesComboBox.removeItemAt(index); simulatorFrame.updateEditMenu(); + + updateTaskManagerTable(); } public void addProcessAtIndex(int index) { @@ -920,7 +920,7 @@ public class VSSimulator extends JPanel { tabbedPane.remove(localPanel); tabbedPane.insertTab(prefs.getString("lang.events"), null, splitPane1, null, 0); splitPane1.setTopComponent(localPanel); - splitPane1.setDividerLocation((int) (getPaintSize()/2) - 20); + //splitPane1.setDividerLocation((int) (getPaintSize()/2) - 20); /* addPanel */ localAddPanel.add(localPIDComboBox, 2); @@ -932,6 +932,7 @@ public class VSSimulator extends JPanel { /* addPanel */ localAddPanel.remove(2); } + tabbedPane.setSelectedIndex(selectedIndex); /* Update the 'Variables tab' */ |
