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

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 adressmanagement;
  7. import adressmanagement.controller.ControllerOpen;
  8. import adressmanagement.model.AdressmanagementModel;
  9. import adressmanagement.view.AdressmanagementView;
  10. import javax.swing.JOptionPane;
  11. import javax.swing.UIManager;
  12. /**
  13. *
  14. * @author chris
  15. */
  16. public class Start
  17. {
  18. public Start()
  19. {
  20. AdressmanagementView view = new AdressmanagementView();
  21. AdressmanagementModel model = new AdressmanagementModel();
  22. ControllerOpen ctrOpen = new ControllerOpen(view, model);
  23. ctrOpen.registerEvents();
  24. view.setVisible(true);
  25. }
  26. public static void main(String[] args)
  27. {
  28. try
  29. {
  30. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  31. }
  32. catch (Exception ex)
  33. {
  34. JOptionPane.showMessageDialog(null, ex.toString());
  35. }
  36. new Start();
  37. }
  38. }