PPT Slide
J.61
/* The start method creates a new thread and starts
it running */
public void start() {
if (runner == null) {
runner = new Thread(this);
runner.start();
}
}
/* The stop method suspends the execution of the
thread when the reader leaves the page. */
public void stop() {
if (runner != null) {
runner.stop();
runner = null;
}
}
Previous slide
Next slide
Back to first slide
View graphic version