-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathQuizApp.java
More file actions
32 lines (28 loc) · 870 Bytes
/
QuizApp.java
File metadata and controls
32 lines (28 loc) · 870 Bytes
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
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.List;
import java.util.ArrayList;
import javax.swing.UIManager;
public class QuizApp extends JFrame {
// This class is now just a launcher for QuizGUI
// All GUI logic is handled in QuizGUI
public QuizApp() {
// This class is now just a launcher for QuizGUI
// All GUI logic is handled in QuizGUI
}
private void cleanup() {
DatabaseConnector.closeConnection();
}
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
new QuizGUI().setVisible(true);
});
}
}