aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
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