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

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