showDashboard() function added

This commit is contained in:
naumueller 2025-11-02 19:09:58 +01:00
parent 1bf4594a93
commit e4276d6cca

View File

@ -85,4 +85,18 @@ public class FxViewController implements Initializable {
dialogStage.setScene(new Scene(dialogRoot)); dialogStage.setScene(new Scene(dialogRoot));
dialogStage.showAndWait(); 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();
}
} }