diff options
Diffstat (limited to 'src/Main.java')
-rw-r--r-- | src/Main.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Main.java b/src/Main.java new file mode 100644 index 0000000..c02430a --- /dev/null +++ b/src/Main.java @@ -0,0 +1,20 @@ +import UI.MainWindow; + +import javax.swing.*; +import java.awt.*; + +public class Main { + public static void main(String[] args) { + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } + catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | + IllegalAccessException _) { + } + + EventQueue.invokeLater(() -> { + MainWindow w = new UI.MainWindow(); + w.setVisible(true); + }); + } +} |