Help: Using the Threads in Applets


Help is available for each task, or you can go straight to the solution source code.

Task 1

Add a start method to the applet that will resume the Counter.
Add a start method to the applet. In that method, call resume on the Counter's thread.

Task 2

Add a stop method to the applet that will suspend the Counter.
Add a stop method to the applet. In that method, call suspend on the Counter's thread.

Task 3

Add a destroy method to the applet that will stop the Counter's thread.
Add a destroy method to the applet. In that method, call stop on the Counter's thread.

Copyright © 1996-1997 MageLang Institute. All Rights Reserved.