-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheckinWindow.java
45 lines (33 loc) · 944 Bytes
/
CheckinWindow.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
package healthcareLook;
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class CheckinWindow {
static AnchorPane anchLogin;
static Stage checkinStage;
static String patID =" ";
public static void startCheckinScreen(String id) {
patID = id;
FXMLLoader loadMain = new FXMLLoader();
loadMain.setLocation(MainMenu.class.getResource("Checkin.fxml"));
try{
anchLogin = (AnchorPane) loadMain.load();
}
catch(IOException ex1){
ex1.printStackTrace();
}
checkinStage = new Stage();
checkinStage.setTitle("Welcome to Healhcare Clinic!");
Scene scene = new Scene(anchLogin);
checkinStage.setScene(scene);
checkinStage.show();
}
public static void stageClose(){
checkinStage.close();
}
public static String getID(){
return patID;
}
}