From 02c23a82f41468c04a66626b3a2168d2e40acf17 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 22 Feb 2024 21:51:04 +0100 Subject: [PATCH] put login-view.fxml in resources --- .../elrant/bubbles/gui/LoginApplication.java | 3 ++- src/main/resources/login-view.fxml | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/login-view.fxml diff --git a/src/main/java/team/elrant/bubbles/gui/LoginApplication.java b/src/main/java/team/elrant/bubbles/gui/LoginApplication.java index 24a044a..d9f9ac6 100644 --- a/src/main/java/team/elrant/bubbles/gui/LoginApplication.java +++ b/src/main/java/team/elrant/bubbles/gui/LoginApplication.java @@ -4,12 +4,13 @@ import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.stage.Stage; + import java.io.IOException; public class LoginApplication extends Application { @Override public void start(@org.jetbrains.annotations.NotNull Stage stage) throws IOException { - FXMLLoader fxmlLoader = new FXMLLoader(LoginApplication.class.getResource("login-view.fxml")); + FXMLLoader fxmlLoader = new FXMLLoader(LoginApplication.class.getResource("/login-view.fxml")); Scene scene = new Scene(fxmlLoader.load(), 320, 240); stage.setTitle("Login"); stage.setScene(scene); diff --git a/src/main/resources/login-view.fxml b/src/main/resources/login-view.fxml new file mode 100644 index 0000000..ae78d9c --- /dev/null +++ b/src/main/resources/login-view.fxml @@ -0,0 +1,27 @@ + + + + + + + + + + + + +