-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQMSelect.java
More file actions
101 lines (87 loc) · 2.41 KB
/
QMSelect.java
File metadata and controls
101 lines (87 loc) · 2.41 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 KYUTES;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Font;
public class QMSelect implements ActionListener {
public JFrame frame;
JButton QMSMath;
JButton QMSEnglish;
private JButton backButt;
/**
* Launch the application.
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
QMSelect window = new QMSelect();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public QMSelect() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 1000, 800);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
frame.setLocationRelativeTo(null);
JPanel panel = new JPanel();
panel.setBounds(0, 0, 984, 761);
frame.getContentPane().add(panel);
panel.setLayout(null);
QMSMath = new JButton("math");
QMSMath.setBounds(88, 546, 300, 150);
panel.add(QMSMath);
QMSMath.addActionListener(this);
QMSEnglish = new JButton("English");
QMSEnglish.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
});
QMSEnglish.setBounds(432, 546, 300, 150);
panel.add(QMSEnglish);
backButt = new JButton("back");
backButt.setBounds(832, 673, 87, 23);
panel.add(backButt);
JLabel lblNewLabel = new JLabel("Question Pool Manage");
lblNewLabel.setFont(new Font("�L�n������", Font.BOLD, 25));// ioioi
lblNewLabel.setBounds(88, 220, 644, 65);
panel.add(lblNewLabel);
backButt.addActionListener(this);
}
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == backButt) {
frame.dispose();
/*
* try { TeacherUI window = new TeacherUI(); window.frame.setVisible(true); }
* catch (Exception e1) { e1.printStackTrace(); }
*/
}
if (e.getSource() == QMSMath) {
frame.dispose();
try {
MathQueEditor window = new MathQueEditor();
window.frame.setVisible(true);
} catch (Exception e1) {
e1.printStackTrace();
}
}
}
}