-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReportWindow.java
More file actions
41 lines (30 loc) · 971 Bytes
/
ReportWindow.java
File metadata and controls
41 lines (30 loc) · 971 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
package healthcareLook;
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class ReportWindow {
static AnchorPane anch;
static Stage reportStage;
public static void startReportWindow() {
FXMLLoader loadMain = new FXMLLoader();
loadMain.setLocation(MainMenu.class.getResource("Report.fxml"));
try{
anch = (AnchorPane) loadMain.load();
}
catch(IOException ex1){
ex1.printStackTrace();
}
reportStage = new Stage();
reportStage.getIcons().add(new Image("https://image.freepik.com/free-icon/lifeline-in-a-heart-outline_318-48031.jpg"));
reportStage.setTitle("Welcome to Healhcare Clinic!");
Scene scene = new Scene(anch);
reportStage.setScene(scene);
reportStage.show();
}
public static void stageClose(){
reportStage.close();
}
}