Example: Clock Applet
// Clock.java Steve Tanimoto, 9 April 1999.
import java.awt.*;
import java.applet.*;
import java.util.*;
public class Clock extends Applet
implements Runnable {
Thread timeThread;
public Clock() { }
public void init() {
timeThread = new Thread(this);
timeThread.start();
}
Previous slide
Next slide
Back to first slide
View graphic version