From e4276d6cca62207ce7541ad052cdd59d8c6585cd Mon Sep 17 00:00:00 2001 From: naumueller <> Date: Sun, 2 Nov 2025 19:09:58 +0100 Subject: [PATCH] showDashboard() function added --- .../controller/FxViewController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/efi/projekt/gesundheitsassistent/controller/FxViewController.java b/src/main/java/efi/projekt/gesundheitsassistent/controller/FxViewController.java index 0aa7c2c..0762aee 100644 --- a/src/main/java/efi/projekt/gesundheitsassistent/controller/FxViewController.java +++ b/src/main/java/efi/projekt/gesundheitsassistent/controller/FxViewController.java @@ -85,4 +85,18 @@ public class FxViewController implements Initializable { dialogStage.setScene(new Scene(dialogRoot)); dialogStage.showAndWait(); } + + @FXML + private void showDashboard() throws IOException { + // Dialog + FXMLLoader loader = new FXMLLoader(getClass() + .getResource("/efi/projekt/gesundheitsassistent/view/HeartRateDashboard.fxml")); + Parent dialogRoot = loader.load(); + + // Dialog Stage erzeugen + Stage dialogStage = new Stage(); + dialogStage.initModality(Modality.APPLICATION_MODAL); + dialogStage.setScene(new Scene(dialogRoot)); + dialogStage.showAndWait(); + } }