-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperation_selection.java
More file actions
57 lines (50 loc) · 1.81 KB
/
operation_selection.java
File metadata and controls
57 lines (50 loc) · 1.81 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
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class operation_selection extends JFrame {
private JPanel operationSelection;
private JButton backButton;
private JButton activityCreatementButton;
private JButton emergencyInformationButton;
private JButton addEquipmentButton;
public operation_selection(){
add(operationSelection);
Root strt = new Root();
backButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
animator_login anmtr = new animator_login();
anmtr.setVisible(true);
setVisible(false);
}
});
activityCreatementButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
activity_creation actvt = new activity_creation();
actvt.setVisible(true);
setVisible(false);
}
});
emergencyInformationButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
emergency_info emerg = new emergency_info();
emerg.setVisible(true);
setVisible(false);
}
});
addEquipmentButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
emergency_equip equip = new emergency_equip();
equip.setVisible(true);
setVisible(false);
}
});
setTitle("Animator Page");
setResizable(true);
setSize(600,350);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}