-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart_screen.java
More file actions
52 lines (46 loc) · 1.65 KB
/
Start_screen.java
File metadata and controls
52 lines (46 loc) · 1.65 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
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Start_screen extends JFrame {
private JPanel start_screen_1;
private JLabel who, wlcm;
private JButton customerButton, animatorButton, managerButton;
public Start_screen() {
add(start_screen_1);
managerButton.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
manager_page managerPage = new manager_page();
managerPage.setVisible(true);
setVisible(false);
}
}
);
customerButton.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
customer_logIn cstLog = new customer_logIn();
cstLog.setVisible(true);
setVisible(false);
}
}
);
animatorButton.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
animator_login anmtr = new animator_login();
anmtr.setVisible(true);
setVisible(false);
}
}
);
setTitle("Vacation Village");
setVisible(true);
setResizable(true);
setSize(600,350);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}