Main.java 957 B

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