aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-16 02:16:16 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-16 02:16:16 +0530
commitda6b366397aa15e2686840c1d9ffa5dae5d49d2a (patch)
treea53bc42092a564bfbf66a67b70e3aa9cb8689798 /src/Main.java
First Commit
Diffstat (limited to 'src/Main.java')
-rw-r--r--src/Main.java23
1 files changed, 23 insertions, 0 deletions
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