import java.applet.*;
import java.awt.*;
import java.util.*;

public class DigitalClock extends Applet
{
	Font theFont = new Font ("TimesRoman",Font.BOLD, 22);
	Date theDate;

	public String getAppletInfo()
	{
		return "Name: DigitalClock\r\n" +
		       "Author: Ray Melendez\r\n" +
		       "Created with Microsoft Visual J++ Version 1.1";
	}


	public void init()
	{
    	resize(320, 300);

	}

	public void paint(Graphics g)
	{
		g.setFont(theFont);
		g.drawString(theDate.toString(), 10, 50);
	}

	public void start()
	{
		while (true) {
			theDate = new Date();
			repaint();
			try { Thread.sleep(1000);}
			catch (InterruptedException e) {}
		}

	}
	
	
}

