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.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 wuerfel;
  7. import javax.swing.JOptionPane;
  8. import javax.swing.UIManager;
  9. import wuerfel.controller.StartStopController;
  10. import wuerfel.controller.WertAdapter;
  11. import wuerfel.model.WuerfelModel;
  12. import wuerfel.view.WuerfelView;
  13. /**
  14. *
  15. * @author leo
  16. */
  17. public class Start
  18. {
  19. public Start()
  20. {
  21. WuerfelView view = new WuerfelView();
  22. WuerfelModel model = new WuerfelModel();
  23. StartStopController controller = new StartStopController(view, model);
  24. controller.registerEvents();
  25. WertAdapter wAdapter = new WertAdapter(view, model);
  26. wAdapter.einschreiben();
  27. view.setVisible(true);
  28. }
  29. /**
  30. * @param args the command line arguments
  31. */
  32. public static void main(String[] args)
  33. {
  34. try
  35. {
  36. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  37. }
  38. catch (Exception ex)
  39. {
  40. JOptionPane.showMessageDialog(null, ex.toString());
  41. }
  42. new Start();
  43. }
  44. }