12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * 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 wuerfel;
-
- import javax.swing.JOptionPane;
- import javax.swing.UIManager;
- import wuerfel.controller.StartStopController;
- import wuerfel.controller.WertAdapter;
- import wuerfel.model.WuerfelModel;
- import wuerfel.view.WuerfelView;
-
- /**
- *
- * @author leo
- */
- public class Start
- {
- public Start()
- {
- WuerfelView view = new WuerfelView();
- WuerfelModel model = new WuerfelModel();
- StartStopController controller = new StartStopController(view, model);
- controller.registerEvents();
- WertAdapter wAdapter = new WertAdapter(view, model);
- wAdapter.einschreiben();
- view.setVisible(true);
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)
- {
- try
- {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- }
- catch (Exception ex)
- {
- JOptionPane.showMessageDialog(null, ex.toString());
- }
-
- new Start();
- }
-
- }
|