/* * StopWatch2.java * Model contains the data and the state for the stopwatch * Created on December 7, 2001, 8:29 AM * * @author Stuart Hansen * @version */ import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.beans.*; import Views.*; public class Test { // The main program creates a watch and adds views to it public static void main (String args []) { StopWatch2 stopwatch = new StopWatch2(); stopwatch.addView(new AnalogDisplay()); stopwatch.addView(new DigitalDisplay()); stopwatch.addView(new TimerDisplay(90)); } }