You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Start.java 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package mvcgrafik;
  7. import javax.swing.JFrame;
  8. import javax.swing.WindowConstants;
  9. import mvcgrafik.controller.GrafikController;
  10. import mvcgrafik.model.GrafikModel;
  11. import mvcgrafik.view.GrafikMenuView;
  12. import mvcgrafik.view.GrafikView;
  13. //import mvcgrafik.ohmLogger;
  14. /**
  15. * Builder Class
  16. * @author le
  17. */
  18. public class Start
  19. {
  20. public Start()
  21. {
  22. JFrame frm = new JFrame();
  23. frm.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  24. GrafikMenuView view = new GrafikMenuView();
  25. GrafikModel model = new GrafikModel();
  26. view.getGrafikView1().setModel(model);
  27. // view.setModel(model);
  28. GrafikController controller = new GrafikController(view, model);
  29. controller.registerEvents();
  30. view.setSize(800, 600);
  31. view.setVisible(true);
  32. }
  33. /**
  34. * @param args the command line arguments
  35. */
  36. public static void main(String[] args)
  37. {
  38. new Start();
  39. }
  40. }