-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStaffAdminWindow.java
More file actions
43 lines (31 loc) · 901 Bytes
/
StaffAdminWindow.java
File metadata and controls
43 lines (31 loc) · 901 Bytes
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
package healthcareLook;
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
/*a window exclusive to the admin, where this will add or delete employees.
*
*/
public class StaffAdminWindow {
AnchorPane anch;
static Stage admintage;
public void startAdminWindow(Stage adminStage) {
FXMLLoader loadMain = new FXMLLoader();
loadMain.setLocation(MainMenu.class.getResource("StaffAdmin.fxml"));
try{
anch = (AnchorPane) loadMain.load();
}
catch(IOException ex1){
ex1.printStackTrace();
}
admintage = new Stage();
admintage.setTitle("Welcome to Healhcare Clinic!");
Scene scene = new Scene(anch);
admintage.setScene(scene);
admintage.show();
}
public static void stageClose(){
admintage.close();
}
}