-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMainClass.java
More file actions
52 lines (41 loc) · 1.26 KB
/
Copy pathMainClass.java
File metadata and controls
52 lines (41 loc) · 1.26 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package ui;
import jdbc.Database;
public class MainClass {
//public static ArrayList<Book> books = new ArrayList<Book>();
//public static ArrayList<User> users = new ArrayList<User>();
//public static Formatter formatter= new Formatter(System.out);
public static Database db = new Database();
public static MainPage mp ;
public static ForgetPwd fp;
public static LoginPage lp = new LoginPage();
public static SignUp su ;
public MainClass() {
//lp.jf.setVisible(false);
lp.jf.setVisible(true);
//mp=new MainPage();
//mp.jf.setVisible(true);
}
public static void main(String []args) {
MainClass mc = new MainClass();
//mc.db.dbUpdate("insert into books values('boom','zhangle','0.1','1000003',1)");
//ForgetPwdPage fp = new ForgetPwdPage();
//SignUpPage sup = new SignUpPage();
/*JFrame f=new JFrame();
Sidebar sbar=new Sidebar();
f.getContentPane().add(sbar.scrollPane,BorderLayout.WEST);
f.setVisible(true);
f.pack();
f.setSize(400, 400);
*/
/*System.out.println("=======Welcome to the Book Manager System!=======");
mc.showMenu();
Scanner sn= new Scanner(System.in);
while(true) {
int menuChoice;
System.out.print("Please enter you choice: ");
menuChoice=sn.nextInt();
mc.doOperation(menuChoice);
}
*/
}
}