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

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
  3. * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
  4. */
  5. package bandit;
  6. import javax.swing.JOptionPane;
  7. import javax.swing.UIManager;
  8. /**
  9. * Builder Class
  10. * @author le
  11. */
  12. public class Start
  13. {
  14. public Start()
  15. {
  16. ZahlenView view = new ZahlenView();
  17. Zahlengenerator model = new Zahlengenerator();
  18. StartStopController controller = new StartStopController(view, model);
  19. WertAdapter adapter = new WertAdapter(view, model);
  20. controller.registerEvents();
  21. model.addWertSubscription(adapter);
  22. view.setVisible(true);
  23. }
  24. /**
  25. * @param args the command line arguments
  26. */
  27. public static void main(String[] args)
  28. {
  29. try
  30. {
  31. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  32. }
  33. catch (Exception ex)
  34. {
  35. JOptionPane.showMessageDialog(null, ex.toString());
  36. }
  37. new Start();
  38. }
  39. }