When the thread is created, it doesn't start running yet. You must call a method called thread.start, and you can stop it from running by calling thread.stop. |
When the thread starts, it starts executing the run method. If it stops and then starts again, it continues the run method. |
It is good design to put these calls to thread.start and thread.stop in the start and stop methods of the applet, so that the thread doesn't run whenever the applet window is not running. |
Threads have other methods, such as thread.suspend and thread.resume when the user wants to start and stop the thread. |