-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainNov16.java
More file actions
41 lines (21 loc) · 840 Bytes
/
MainNov16.java
File metadata and controls
41 lines (21 loc) · 840 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
33
34
35
36
37
38
39
40
41
package Nov16LibrarySystem;
import Nov16LibrarySystem.DBUtil.ConnectionManager;
import java.awt.*;
import java.sql.Connection;
public class MainNov16 {
public static void main(String[] args){
//1. connect to database
//2. display software GUI
EventQueue.invokeLater(new Runnable(){
public void run(){
Connection connection = ConnectionManager.getInstance().getConnection();
Nov16LibrarySystem.UIPackage.Frame frame = new Nov16LibrarySystem.UIPackage.Frame();
}
});
//3. try to log in to the system/software
//如果checkUserInfo为真,则登录
//4. insert, delete, update(on books only now)
//5. search, return table or graphics
//6. close connection,触发条件为关闭窗口
}
}