-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatientInteractionWindow.java
More file actions
55 lines (36 loc) · 1.1 KB
/
PatientInteractionWindow.java
File metadata and controls
55 lines (36 loc) · 1.1 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
package healthcareLook;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class PatientInteractionWindow {
static AnchorPane anch;
static Stage pInteractionStage;
static String patientID = null;
public static void startPInteraction(String id) {
patientID = id;
HealthController control = new HealthController();
FXMLLoader loads2 = new FXMLLoader();
loads2.setLocation(HealthMainClass.class.getResource("PatientInteraction.fxml"));
try{
anch = (AnchorPane) loads2.load();
}
catch(IOException ex1){
ex1.printStackTrace();
}
pInteractionStage = new Stage();
pInteractionStage.setTitle("HealthCare Clinic Demo");
Scene scene = new Scene(anch);
pInteractionStage.setScene(scene);
pInteractionStage.show();
}
public static String GetID(String id){
id = patientID;
return id;
}
public static void WindowClose() {
pInteractionStage.close();
}
}