From 6d387835571b61f4142859551f4ff37e76b7df21 Mon Sep 17 00:00:00 2001 From: fdai7736 Date: Tue, 6 Feb 2024 20:36:07 +0100 Subject: [PATCH] add Card Controller --- .../onses/controllers/CardController.java | 17 +++++++++++++++++ .../resources/de/hsfulda/onses/views/card.fxml | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/main/java/de/hsfulda/onses/controllers/CardController.java create mode 100644 src/main/resources/de/hsfulda/onses/views/card.fxml diff --git a/src/main/java/de/hsfulda/onses/controllers/CardController.java b/src/main/java/de/hsfulda/onses/controllers/CardController.java new file mode 100644 index 0000000..c84835d --- /dev/null +++ b/src/main/java/de/hsfulda/onses/controllers/CardController.java @@ -0,0 +1,17 @@ +package de.hsfulda.onses.controllers; + +import de.hsfulda.onses.Main; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; + +import java.io.IOException; +import java.util.Objects; + +public class CardController implements Controller { + @Override + public Parent render() throws IOException { + final Parent parent = FXMLLoader.load(Objects.requireNonNull(Main.class.getResource("views/card.fxml"))); + + return parent; + } +} diff --git a/src/main/resources/de/hsfulda/onses/views/card.fxml b/src/main/resources/de/hsfulda/onses/views/card.fxml new file mode 100644 index 0000000..fd33361 --- /dev/null +++ b/src/main/resources/de/hsfulda/onses/views/card.fxml @@ -0,0 +1,13 @@ + + + + + + + + + + +