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 1018B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.GrafikView;
  12. //import mvcgrafik.ohmLogger;
  13. /**
  14. * Builder Class
  15. * @author le
  16. */
  17. public class Start
  18. {
  19. public Start()
  20. {
  21. JFrame frm = new JFrame();
  22. frm.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  23. GrafikView view = new GrafikView();
  24. GrafikModel model = new GrafikModel();
  25. view.setModel(model);
  26. GrafikController controller = new GrafikController(view, model);
  27. controller.registerEvents();
  28. frm.setContentPane(view);
  29. frm.setSize(800, 600);
  30. frm.setVisible(true);
  31. }
  32. /**
  33. * @param args the command line arguments
  34. */
  35. public static void main(String[] args)
  36. {
  37. new Start();
  38. }
  39. }