import java.awt.*;
import javax.swing.*;

public class TestDigitalClock extends JFrame {
	
	DigitalClock aClock;
	
	public TestDigitalClock(String title) {
		super(title);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Container content = getContentPane();
		content.setLayout(new FlowLayout(FlowLayout.CENTER,10,30));
		Font clockFont = new Font("Courier",Font.BOLD,60);
		aClock = new DigitalClock(Color.blue,Color.white,clockFont);
		content.add(aClock);
		aClock.start();
	}


  	public static void main(String[] args) {
  		TestDigitalClock clockFrame = new TestDigitalClock("A Digital Clock");
  		clockFrame.setSize(800,500);
  		clockFrame.setVisible(true);
  	} // end main
  	
} // end TestDigitalClock

