Main.java 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package ui.view;
  2. import java.awt.EventQueue;
  3. import javax.swing.UIManager;
  4. import javax.swing.UnsupportedLookAndFeelException;
  5. import ui.controller.*;
  6. import ui.model.*;
  7. public class Main {
  8. public static void main(String[] args) {
  9. // *Design
  10. try {
  11. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  12. } catch (ClassNotFoundException | InstantiationException | IllegalAccessException
  13. | UnsupportedLookAndFeelException e1) {
  14. // TODO Auto-generated catch block
  15. e1.printStackTrace();
  16. }
  17. EventQueue.invokeLater(new Runnable() {
  18. public void run() {
  19. try {
  20. IdCounter ID = new IdCounter();
  21. Model M = new Model();
  22. GUI V = new GUI(M);
  23. Control C = new Control(M, V, ID);
  24. V.refreshCategories();
  25. V.getFrmCyberPhysical().setVisible(true);
  26. } catch (Exception e) {
  27. e.printStackTrace();
  28. }
  29. }
  30. });
  31. }
  32. }