Browse Source

add Card Controller

main
fdai7736 11 months ago
parent
commit
6d38783557
  1. 17
      src/main/java/de/hsfulda/onses/controllers/CardController.java
  2. 13
      src/main/resources/de/hsfulda/onses/views/card.fxml

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

13
src/main/resources/de/hsfulda/onses/views/card.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