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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 test;
  7. import EierUhrKomponente.EierUhr;
  8. import javax.swing.JFrame;
  9. import javax.swing.JOptionPane;
  10. import javax.swing.UIManager;
  11. import javax.swing.WindowConstants;
  12. /**
  13. *
  14. * @author chris
  15. */
  16. public class Start
  17. {
  18. public Start()
  19. {
  20. JFrame frm = new JFrame();
  21. frm.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  22. View view = new View();
  23. // Model model = new Model();
  24. // Controller ctrl = new Controller(view, model);
  25. view.setTitle("Test");
  26. view.pack();
  27. view.setVisible(true);
  28. }
  29. /**
  30. * @param args the command line arguments
  31. */
  32. public static void main(String[] args)
  33. {
  34. try
  35. {
  36. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  37. }
  38. catch (Exception ex)
  39. {
  40. JOptionPane.showMessageDialog(null, ex.toString());
  41. }
  42. new Start();
  43. }
  44. }