This applet is made up of three classes, all saved in one .jar file. The main class builds the GUI and responds to the user's action (pressing the "start" button). The other two classes build, start and stop two Threads, one by extending the Thread class and the other by implementing the Runnable interface.

Valid XHTML 1.0 Transitional