// Clock face test harness for class LED
import java.awt.*;
import javax.swing.*;

public class LEDTest {
   // instance constants and variables 
   private static final int WINDOW_WIDTH = 400;
   private static final int WINDOW_HEIGHT = 125;

   // main(): application entry point 
   public static void main(String[] args) {
		JFrame w1 = new JFrame("Clock LED Test");
		w1.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);

		w1.setLayout(new FlowLayout());

		LED clock[] = new LED[6];
		clock[0] = new LED(LED.BLANK);
		clock[1] = new LED(2);
		clock[2] = new LED(LED.COLON);
		clock[3] = new LED(5);
		clock[4] = new LED(8);
		clock[5] = new LED(LED.LETA);

		for (int i = 0; i < 6; ++i) {
			w1.add(clock[i]);
		}

		w1.setVisible(true);
	}
}
