Clock Applet (continued)
public void paint(Graphics g) {
g.drawString("The time is: " +
try { Thread.sleep(1000); }
catch (InterruptedException e) {}
public void start() { timeThread.resume(); }
public void stop() { timeThread.suspend(); }
public void destroy() { timeThread.stop(); }