/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package autogui; import controller.CommandController; import javax.swing.JOptionPane; import javax.swing.UIManager; import model.AdressverwaltungModel; import view.Adressverwaltung; /** * Builder Class * @author nobody */ public class Start { public Start() { Adressverwaltung view = new Adressverwaltung(); AdressverwaltungModel model = new AdressverwaltungModel(); CommandController controller = new CommandController(view, model); controller.registerEvents(); controller.registerCommands(); view.setVisible(true); } /** * @param args the command line arguments */ public static void main(String[] args) { try { for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); } } } catch(Exception ex) { JOptionPane.showMessageDialog(null, "SAU PREUSSE!!!"); } new Start(); } }