How can I write a Run/Pause routine?

I抎 like to create a simulation application with a 揜un/Pause?and a 揝top?button on a GUI that controls the execution of a method in another 揝imulation?class. I抎 like the Run/Pause button to toggle the simulation between running continuously when 揜un?is pressed and paused when 揚ause?is pressed. 揝top?I imagine as a separate button.

[336 byte] By [adadyna] at [2007-11-27 3:42:22]
# 1
I've never done this but I imagina you can do this with the thread.sleep() function.
radicjesa at 2007-7-12 8:45:57 > top of Java-index,Java Essentials,New To Java...