From da6b366397aa15e2686840c1d9ffa5dae5d49d2a Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 16 Nov 2024 02:16:16 +0530 Subject: First Commit --- src/Main.java | 23 +++++++++++++++++++++++ 1 file changed, 23 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..e3a030a --- /dev/null +++ b/src/Main.java @@ -0,0 +1,23 @@ +import Store.ConnectionHandler; +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 _) { + } + + new ConnectionHandler("jdbc:sqlite:LibMan.db").connect(); + + EventQueue.invokeLater(() -> { + MainWindow w = new UI.MainWindow(); + w.setVisible(true); + }); + } +} \ No newline at end of file -- cgit v1.2.3