-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbedinfocontroller.java
54 lines (51 loc) · 2.07 KB
/
bedinfocontroller.java
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
package com.example.hopeitworks;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class bedinfocontroller {
@FXML
public void emergency(ActionEvent event) throws IOException {
Parent NextParent = FXMLLoader.load(getClass().getResource("emergencyward.fxml"));
Scene NextScene = new Scene(NextParent);
Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
window.setScene(NextScene);
window.show();
}
@FXML
public void general(ActionEvent event) throws IOException{
Parent NextParent = FXMLLoader.load(getClass().getResource("generalward.fxml"));
Scene NextScene = new Scene(NextParent);
Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
window.setScene(NextScene);
window.show();
}
@FXML
public void ICU(ActionEvent event) throws IOException{
Parent NextParent = FXMLLoader.load(getClass().getResource("ICUward.fxml"));
Scene NextScene = new Scene(NextParent);
Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
window.setScene(NextScene);
window.show();
}
@FXML
public void privateA(ActionEvent event) throws IOException{
Parent NextParent = FXMLLoader.load(getClass().getResource("PrivateA.fxml"));
Scene NextScene = new Scene(NextParent);
Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
window.setScene(NextScene);
window.show();
}
@FXML
public void privateB(ActionEvent event) throws IOException{
Parent NextParent = FXMLLoader.load(getClass().getResource("PrivateB.fxml"));
Scene NextScene = new Scene(NextParent);
Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
window.setScene(NextScene);
window.show();
}
}