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 bandit;
  7. import javax.swing.JOptionPane;
  8. import javax.swing.UIManager;
  9. import bandit.controller.BanditAdapter;
  10. import bandit.controller.BanditController;
  11. import bandit.model.WuerfelModel;
  12. import bandit.view.WuerfelView;
  13. /**
  14. *
  15. * @author hd, chris
  16. */
  17. public class Start
  18. {
  19. public Start()
  20. {
  21. WuerfelView view = new WuerfelView();
  22. WuerfelModel model = new WuerfelModel();
  23. BanditAdapter adapter = new BanditAdapter(view, model);
  24. BanditController ctrlCommand = new BanditController(view, model);
  25. ctrlCommand.registerEvents();
  26. ctrlCommand.registerCommands();
  27. adapter.einschreiben();
  28. view.setVisible(true);
  29. }
  30. public static void main(String[] args)
  31. {
  32. try
  33. {
  34. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  35. }
  36. catch (Exception e)
  37. {
  38. JOptionPane.showMessageDialog(null, e.toString());
  39. }
  40. new Start();
  41. }
  42. }