Browse Source

add PlayerController

main
fdai7736 11 months ago
parent
commit
8a7982aaa5
  1. 17
      src/main/java/de/hsfulda/onses/controllers/PlayerController.java
  2. 13
      src/main/resources/de/hsfulda/onses/views/player.fxml

17
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;
}
}

13
src/main/resources/de/hsfulda/onses/views/player.fxml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>
Loading…
Cancel
Save