aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
blob: 82159738febcec59d7f062b981fd3657bcc3036e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Store.ConnectionHandler;
import UI.MainWindow;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.theme.SolarizedLightTheme;

import java.awt.*;

public class Main {
    public static void main(String[] args) {
        new ConnectionHandler("jdbc:sqlite:LibMan.db").connect();

        EventQueue.invokeLater(() -> {
            LafManager.setTheme(new SolarizedLightTheme());
            LafManager.install();

            MainWindow w = new UI.MainWindow();
            w.setVisible(true);
        });
    }
}