From 8a7982aaa5ad16ee61d95a44a62fe3f1787cf433 Mon Sep 17 00:00:00 2001 From: fdai7736 Date: Tue, 6 Feb 2024 21:54:00 +0100 Subject: [PATCH] add PlayerController --- .../onses/controllers/PlayerController.java | 17 +++++++++++++++++ .../de/hsfulda/onses/views/player.fxml | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/main/java/de/hsfulda/onses/controllers/PlayerController.java create mode 100644 src/main/resources/de/hsfulda/onses/views/player.fxml diff --git a/src/main/java/de/hsfulda/onses/controllers/PlayerController.java b/src/main/java/de/hsfulda/onses/controllers/PlayerController.java new file mode 100644 index 0000000..7cdb72f --- /dev/null +++ b/src/main/java/de/hsfulda/onses/controllers/PlayerController.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 PlayerController implements Controller { + @Override + public Parent render() throws IOException { + final Parent parent = FXMLLoader.load(Objects.requireNonNull(Main.class.getResource("views/player.fxml"))); + + return parent; + } +} diff --git a/src/main/resources/de/hsfulda/onses/views/player.fxml b/src/main/resources/de/hsfulda/onses/views/player.fxml new file mode 100644 index 0000000..fd33361 --- /dev/null +++ b/src/main/resources/de/hsfulda/onses/views/player.fxml @@ -0,0 +1,13 @@ + + + + + + + + + + +