Threaded Applet Example

This is what the threaded Java applet looks like in action. When a button is first pressed the thread is created. Next time the same button is pressed, the thread is put in a waiting mode until the button is pressed once again.

Two buttons are used, one for each thread. One of the threads is created by extending/subclassing class Thread, and one by implementing the Runnable Interface.

This browser is not applet enabled