aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
blob: e3a030adb9d25f557fa1916c1194c841ebf8063b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
        });
    }
}