import java.applet.Applet;
import java.awt.Graphics;
import java.util.Date;

public class Clock extends Applet implements Runnable {
	protected int counter;

	public void start() {
		Thread myClock = new Thread(this);
		myClock.setPriority(Thread.MIN_PRIORITY);

		myClock.start();
	} //start()

	public void run() {
		while (true) {
			repaint();
			try {
				Thread.sleep(1000);
			} catch (InterruptedException ie) {
				//ignore it
			} //catch
		} //while
	} //run()

  	public void paint(Graphics g) {
		g.drawString( new Date().toString(),50,50);
  	} //paint()
} //class Clock
