From a7f718cac359b1fe65bf47dcb0561dabc93116ed Mon Sep 17 00:00:00 2001 From: fdai7736 Date: Wed, 7 Feb 2024 15:57:20 +0100 Subject: [PATCH] init CardDeckController to use fxml --- .../onses/controllers/CardDeckController.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/hsfulda/onses/controllers/CardDeckController.java b/src/main/java/de/hsfulda/onses/controllers/CardDeckController.java index 06ee269..254d317 100644 --- a/src/main/java/de/hsfulda/onses/controllers/CardDeckController.java +++ b/src/main/java/de/hsfulda/onses/controllers/CardDeckController.java @@ -1,4 +1,17 @@ package de.hsfulda.onses.controllers; -public class CardDeckController { +import de.hsfulda.onses.Main; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; + +import java.io.IOException; +import java.util.Objects; + +public class CardDeckController implements Controller { + @Override + public Parent render() throws IOException { + final Parent parent = FXMLLoader.load(Objects.requireNonNull(Main.class.getResource("views/cardDeck.fxml"))); + + return parent; + } }