From ed3e023d1da3465bc79a91d38950a167004911b2 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 16 Nov 2024 02:11:24 +0530 Subject: First Commit --- src/Main.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/Main.java (limited to 'src/Main.java') 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); + }); + } +} -- cgit v1.2.3