diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-20 16:41:08 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-20 16:41:08 +0000 |
| commit | b947eec24a733cbd1dbe9757b6246c4efb52b4e7 (patch) | |
| tree | 864b69b9d9371dde3942eccb769fa231c77c8af0 /sources/simulator/VSSimulationPanel.java | |
| parent | 8131638fc01dbde84864656e197b14772ff53346 (diff) | |
Process highlighting is now asap even if isPaused
Diffstat (limited to 'sources/simulator/VSSimulationPanel.java')
| -rw-r--r-- | sources/simulator/VSSimulationPanel.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/simulator/VSSimulationPanel.java b/sources/simulator/VSSimulationPanel.java index fb7d6a1..ff96b7f 100644 --- a/sources/simulator/VSSimulationPanel.java +++ b/sources/simulator/VSSimulationPanel.java @@ -780,11 +780,9 @@ public class VSSimulationPanel extends Canvas implements Runnable, MouseMotionLi } public void mouseReleased(MouseEvent e) { - System.out.println("release"); } public void mouseDragged(MouseEvent e) { - System.out.println("dragged"); } public void mouseMoved(MouseEvent e) { @@ -796,6 +794,9 @@ public class VSSimulationPanel extends Canvas implements Runnable, MouseMotionLi highlightedProcess = null; } + if (isPaused) + paint(); + return; } @@ -809,6 +810,9 @@ public class VSSimulationPanel extends Canvas implements Runnable, MouseMotionLi highlightedProcess = p; p.highlightOn(); } + + if (isPaused) + paint(); } public void ancestorMoved(HierarchyEvent e) { } |
