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