Package gui

Examples of gui.ProgramFrame


  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);
   
  }
View Full Code Here

TOP

Related Classes of gui.ProgramFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.