From e87c7b480aaba9c202379b61d085c8786a8d6693 Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Sat, 4 Feb 2023 18:28:31 +0100 Subject: [PATCH] fix: scene Change --- .../com/bib/essensbestellungsverwaltung/SingUpController.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java b/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java index a53fcfd..557012e 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java @@ -93,8 +93,6 @@ public class SingUpController { @FXML private void onAnmeldenBtClick() throws IOException { - FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml")); - Scene scene = new Scene(fxmlLoader.load(), 950,480); - StartViewApplication.primary.setScene(scene); + StartViewApplication.changeScene("login-view.fxml"); } }