How to restart a button, bring it to the intial state (actionlistener, threads)
Joined: Jun 05, 2009
I am adapting an applet from some open source code to my need and have a problem with reseting the its applet to the initial state.
The Applet has two buttons: "Run" and "Reset".
runbutton starts an algorithm, which is in a runnable class.
resetbutton is currently just reseting the parameters of this algorithm to the intial state.
I would like to reset the applet with a button, so that when i press the runbutton the applet is just at the same stage as befor pressing the start button for the first time.