1 | import java.awt.Graphics; |
2 | import java.util.Date; |
3 | public class Clock extends java.applet.Applet |
4 | implements Runnable { |
5 | Thread clockThread; |
6 | public void start () { |
7 | if (clockThread == null) { |
8 | clockThread = new Thread (this, "Clock"); |
9 | clockThread.start (); |
10 | } |
11 | } |