-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudentHome.java
More file actions
101 lines (84 loc) · 2.27 KB
/
StudentHome.java
File metadata and controls
101 lines (84 loc) · 2.27 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package student;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import Update.StudentUpdateId;
import View.StudentId;
public class StudentHome extends JDialog implements ActionListener
{
private JMenuItem Detail;
private JMenuItem Feedback;
private JButton Update;
String er;
public StudentHome(final String er)
{
this.er=er;
getContentPane().setLayout(null);
setSize(700, 700);
JMenuBar menuBar = new JMenuBar();
menuBar.setBounds(0, 0, 484, 21);
getContentPane().add(menuBar);
JMenu mnView = new JMenu("View");
mnView.setBackground(Color.LIGHT_GRAY);
mnView.setFont(new Font("Segoe UI", Font.BOLD, 12));
menuBar.add(mnView);
Detail = new JMenuItem("Detail");
Detail.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
new StudentId(er);
}
});
mnView.add(Detail);
Feedback = new JMenuItem("Feedback");
Feedback.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
}
});
mnView.add(Feedback);
Update = new JButton(" Update");
Update.setBackground(Color.WHITE);
Update.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
new StudentUpdateId(er);
}
});
menuBar.add(Update);
JButton feed = new JButton("FEEDBACK");
feed.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
String semester = JOptionPane.showInputDialog(null,"Enter Semester");
new feedback(semester);
}
});
feed.setToolTipText("Click Here to give Feedback");
feed.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 15));
feed.setBounds(178, 125, 152, 49);
getContentPane().add(feed);
setModal(true);
setVisible(true);
}
public static void main(String[] args)
{
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
}