-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI6.java
More file actions
60 lines (53 loc) · 1.38 KB
/
GUI6.java
File metadata and controls
60 lines (53 loc) · 1.38 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
51
52
53
54
55
56
57
58
59
60
import java.awt.event.ActionEvent;
import java.sql.*;
import java.awt.event.ActionListener;
import javax.swing.*;
public class GUI6{
public static void Screen6()
{
JFrame jf =new JFrame("Accountant Section");
JButton jb1 = new JButton("Add Student");
jb1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GUI7 obj = new GUI7();
obj.Screen7();
jf.dispose();
}
});
jb1.setBounds(200,50,200,100);
JButton jb2 = new JButton("View Student");
jb2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Student obj =new Student();
obj.ViewStudent();
jf.dispose();
}
});
jb2.setBounds(200,350,200,100);
JButton jb3 = new JButton("Edit Student");
jb3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GUI8 obj = new GUI8();
obj.Screen8();
jf.dispose();
}
});
jb3.setBounds(200,200,200,100);
JButton jb5 = new JButton("Logout");
jb5.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GUI1 obj = new GUI1();
obj.NewS();
jf.dispose();
}
});
jb5.setBounds(200,650,200,100);
jf.add(jb1);
jf.add(jb2);
jf.add(jb3);
jf.add(jb5);
jf.setSize(600,1200);
jf.setLayout(null);
jf.setVisible(true);
}
}