-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenuController.java
More file actions
44 lines (35 loc) · 1.05 KB
/
MainMenuController.java
File metadata and controls
44 lines (35 loc) · 1.05 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
package healthcareLook;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
/*
* The purpose of this window is to check if the person is a doctor/admin (staff)
* or a receptionist.
*/
public class MainMenuController implements Initializable {
//here are all the buttons used in this window
@FXML
Button buttonStaff;
@FXML
Button buttonPatient;
@FXML
Button buttonQuit;
@Override
public void initialize(URL location, ResourceBundle resources) {
//Each button will go to a different login screen or close the program.
//This one goes to the doctor/admin login
buttonStaff.setOnAction(e->{
HealthLoginStaff.startLoginScreen();
});
//This one goes to the receptionist login for patients.
buttonPatient.setOnAction(e ->{
ReceptionistLoginWindow.startLoginScreen();
});
//this will close the program.
buttonQuit.setOnAction(e ->{
MainMenu.stageClose();
});
}
}