-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStaffDiagonsisWindow.java
More file actions
52 lines (35 loc) · 1.07 KB
/
StaffDiagonsisWindow.java
File metadata and controls
52 lines (35 loc) · 1.07 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
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 StaffDiagonsisWindow {
static AnchorPane anchCreate;
static Stage createDiagonsisStage;
static String staffID;
public static void startCreateDiagonsisWindow(String id){
staffID = id;
FXMLLoader loadMain = new FXMLLoader();
loadMain.setLocation(MainMenu.class.getResource("StaffDiagonsis.fxml"));
try{
anchCreate = (AnchorPane) loadMain.load();
}
catch(IOException ex1){
ex1.printStackTrace();
}
createDiagonsisStage = new Stage();
createDiagonsisStage.setTitle("Welcome to Healhcare Clinic!");
Scene scene = new Scene(anchCreate);
createDiagonsisStage.setScene(scene);
createDiagonsisStage.show();
}
public static void stageClose(){
createDiagonsisStage.close();
}
public static String RetrieveID(String id){
id = staffID;
return id;
}
}