-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryApp.java
More file actions
34 lines (27 loc) · 1.05 KB
/
LibraryApp.java
File metadata and controls
34 lines (27 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import com.formdev.flatlaf.FlatDarkLaf;
import database.DatabaseHelper;
import ui.LoginView;
import javax.swing.*;
/**
* LibraryPro - Advanced Library Management System
* Entry point. Boots FlatLaf, initializes the SQLite database, launches the Login screen.
*/
public class LibraryApp {
public static void main(String[] args) {
// Apply FlatLaf Dark theme BEFORE creating any Swing components
FlatDarkLaf.setup();
// Optional: customize FlatLaf accent / component properties
UIManager.put("Component.arc", 12);
UIManager.put("Button.arc", 10);
UIManager.put("TextComponent.arc", 8);
UIManager.put("ScrollBar.width", 10);
UIManager.put("TitleBar.showIcon", true);
SwingUtilities.invokeLater(() -> {
// Initialize SQLite database and tables (creates library.db if absent)
DatabaseHelper.initialize();
// Show Login window
LoginView loginView = new LoginView();
loginView.setVisible(true);
});
}
}