1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package ui.view;
- import java.awt.EventQueue;
- import java.util.ArrayList;
- import javax.swing.UIManager;
- import javax.swing.UnsupportedLookAndFeelException;
- import ui.controller.*;
- import ui.model.*;
- public class Main {
- public static void main(String[] args) {
- // *Design
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException | IllegalAccessException
- | UnsupportedLookAndFeelException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- idCounter ID = new idCounter();
- Model MODEL = new Model();
- Control CONTROL = new Control(MODEL);
- GUI VIEW = new GUI(CONTROL);
- VIEW.getFrmCyberPhysical().setVisible(true);
- // CONTROL.writeFile();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
- }
|