1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
- package mvcgrafik;
-
- import javax.swing.JFrame;
- import javax.swing.WindowConstants;
- import mvcgrafik.controller.GrafikController;
- import mvcgrafik.model.GrafikModel;
- import mvcgrafik.view.GrafikView;
- //import mvcgrafik.ohmLogger;
-
- /**
- * Builder Class
- * @author le
- */
- public class Start
- {
- public Start()
- {
- JFrame frm = new JFrame();
- frm.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
- GrafikView view = new GrafikView();
- GrafikModel model = new GrafikModel();
- view.setModel(model);
- GrafikController controller = new GrafikController(view, model);
- controller.registerEvents();
- frm.setContentPane(view);
- frm.setSize(800, 600);
- frm.setVisible(true);
-
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)
- {
- new Start();
- }
- }
|