-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatientFinderMain.java
More file actions
58 lines (41 loc) · 1.14 KB
/
PatientFinderMain.java
File metadata and controls
58 lines (41 loc) · 1.14 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
58
package healthcareLook;
/*This class will be for the second window
* This window will find the patient by looking
* through the file.
*/
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
/*
* DOES THE JOB. NO PROBLEMS
*/
public class PatientFinderMain{
static AnchorPane anchor2;
static Stage primaryStage2;
static String patId;
public static String startPatient() {
patId="";
primaryStage2 = new Stage();
FXMLLoader loadPatient = new FXMLLoader();
loadPatient.setLocation(HealthMainClass.class.getResource("PatientFinder.fxml"));
try{
anchor2 = (AnchorPane) loadPatient.load();
}
catch(IOException ex1){
ex1.printStackTrace();
}
primaryStage2.setTitle("HealthCare Finder Demo");
Scene sceneFinder = new Scene(anchor2);
primaryStage2.setScene(sceneFinder);
primaryStage2.showAndWait();
return patId;
}
public static void stageClose(){
primaryStage2.close();
}
public static void setID(String trim) {
patId = trim;
}
}