forked from ahmetoguzazik2005/No-Limit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
27 lines (20 loc) · 641 Bytes
/
Copy pathMain.java
File metadata and controls
27 lines (20 loc) · 641 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
import javax.swing.*;
import java.sql.SQLException;
public class Main {
static MyJDBC m;
public static void main(String[] args) throws RuntimeException {
SwingUtilities.invokeLater(() -> {
try {
m = new MyJDBC();
m.createTable();
} catch (SQLException e) {
throw new RuntimeException(e);
}
MyFrame myFrame = new MyFrame();
myFrame.setTitle("No Limit"); // Konusuruz ismi
// Main Panel - will be cont.
JPanel panel = new JPanel();
myFrame.add(panel);
});
}
}