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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 autogui;
  7. import controller.CommandController;
  8. import javax.swing.JOptionPane;
  9. import javax.swing.UIManager;
  10. import model.AdressverwaltungModel;
  11. import view.Adressverwaltung;
  12. /**
  13. * Builder Class
  14. * @author nobody
  15. */
  16. public class Start
  17. {
  18. public Start()
  19. {
  20. Adressverwaltung view = new Adressverwaltung();
  21. AdressverwaltungModel model = new AdressverwaltungModel();
  22. CommandController controller = new CommandController(view, model);
  23. controller.registerEvents();
  24. controller.registerCommands();
  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. for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
  35. if ("Nimbus".equals(info.getName())) {
  36. UIManager.setLookAndFeel(info.getClassName());
  37. }
  38. }
  39. }
  40. catch(Exception ex)
  41. {
  42. JOptionPane.showMessageDialog(null, "SAU PREUSSE!!!");
  43. }
  44. new Start();
  45. }
  46. }