1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * 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 bandit;
-
- import javax.swing.JOptionPane;
- import javax.swing.UIManager;
- import bandit.controller.BanditAdapter;
- import bandit.controller.BanditController;
- import bandit.model.WuerfelModel;
- import bandit.view.WuerfelView;
-
- /**
- *
- * @author hd, chris
- */
- public class Start
- {
- public Start()
- {
- WuerfelView view = new WuerfelView();
- WuerfelModel model = new WuerfelModel();
- BanditAdapter adapter = new BanditAdapter(view, model);
- BanditController ctrlCommand = new BanditController(view, model);
- ctrlCommand.registerEvents();
- ctrlCommand.registerCommands();
- adapter.einschreiben();
- view.setVisible(true);
- }
-
- public static void main(String[] args)
- {
- try
- {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- }
- catch (Exception e)
- {
- JOptionPane.showMessageDialog(null, e.toString());
- }
- new Start();
- }
-
- }
|