September 2005
Beginner
576 pages
13h 6m
English
One of the objects created for this program is a Thread object called runner. For a thread to get started, a place is needed where the thread is given a value and told to begin running. In this applet, the runner thread will start whenever the start() method is handled and stop whenever stop() is handled.
The start() method of an applet is handled at two different times: right after the init() method and every time the program is restarted after being stopped. An applet is stopped any time a user switches from the applet page to another web page. It starts again when a user returns to the original page. The following is the start() method of the Revolve applet:
public void start() { if (runner == null) { runner = new Thread(this); ...Read now
Unlock full access