From 89b7ac2268d0651ac03f6f25dce93d0bc7d72ab5 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Fri, 29 Apr 2022 11:48:37 +0200 Subject: [PATCH] created GUI Main and AddParticipant --- .../ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java index f7e9d27..f3e735c 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java @@ -9,6 +9,9 @@ import javafx.stage.Stage; import java.io.IOException; public class MainWindow extends Application { + + + @Override public void start(Stage primaryStage) throws Exception { FXMLLoader loader = new FXMLLoader(getClass().getResource("mainWindow.fxml")); @@ -23,7 +26,7 @@ public class MainWindow extends Application { //Can be used to Open new Scene in same Stage. //This way possible to later give object to Controller public void startParticipand(Stage stage) { - FXMLLoader loader = new FXMLLoader(getClass().getResource("..\\participandAddFormular\\participandFormular.fxml")); + FXMLLoader loader = new FXMLLoader(getClass().getResource("../participandAddFormular/participandFormular.fxml")); try { Pane pane = loader.load(); Scene scene = new Scene(pane);