public static void main(String[] args) {
Clock clock = new Clock();
ClockControler controler = new ClockControler(clock);
ProgramFrame frame = new ProgramFrame(controler);
DrawClock panel = new DrawClock();
clock.addObserver(panel);
controler.addObserver(panel);
frame.setSize(250, 250);
frame.add(panel);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}