-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest.java
65 lines (46 loc) · 1.28 KB
/
Test.java
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*package mnregapkg;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Login extends JFrame implements ActionListener{
JButton submit,signUp;
JLabel userName, password;
JPanel panel;
public Login(){
JFrame myframe= new JFrame();
myframe.setSize(300, 600);
myframe.setDefaultCloseOperation(myframe.EXIT_ON_CLOSE);
myframe.setVisible(true);
userName= new JLabel("UserName");
password= new JLabel("Password");
myframe.add(panel);
myframe.add(userName);
myframe.add(password);
}
@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
}
public static void main(String[] args) {
Login n= new Login();
}
}
package mnregapkg;
import java.sql.*;
public class Test {
static Connection con= null;
static Statement stmt= null;
public static void main(String[] args) {
DBManager manager = new DBManager();
con=manager.getConnection();
stmt= manager.getStatement(con);
ResultSet res = null;
res = manager.executeSelectQuery(stmt, "SELECT*FROM user;");
if(res != null){
System.out.println("Result found");
}else{
System.out.println("Not Found");
}
}
}
*/