From da24f73f4615b98d42ddb140c4011e59cbb43621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20K=C3=BChn?= Date: Mon, 13 Dec 2021 12:58:38 +0100 Subject: [PATCH] Added files and launching login.css ui --- client/app/src/main/java/main/MainApplication.java | 10 +++++++++- client/app/src/main/java/users/LoginControler.java | 4 ++++ client/app/src/main/resources/users/login.css | 0 client/app/src/main/resources/users/login.fxml | 11 +++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 client/app/src/main/java/users/LoginControler.java create mode 100644 client/app/src/main/resources/users/login.css create mode 100644 client/app/src/main/resources/users/login.fxml diff --git a/client/app/src/main/java/main/MainApplication.java b/client/app/src/main/java/main/MainApplication.java index 6514b0d..ac5f771 100644 --- a/client/app/src/main/java/main/MainApplication.java +++ b/client/app/src/main/java/main/MainApplication.java @@ -15,10 +15,18 @@ public class MainApplication extends Application { Scene scene = new Scene(fxmlLoader.load(), 1200, 700); scene.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("main-view.css")).toExternalForm()); - stage.setTitle("Hello!"); + stage.setTitle("SharePlaner"); stage.setScene(scene); stage.show(); + FXMLLoader fxmlLoaderLogin = new FXMLLoader(MainApplication.class.getResource("../users/login.fxml")); + Scene sceneLogin = new Scene(fxmlLoaderLogin.load(), 650, 500); + sceneLogin.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("../users/login.css")).toExternalForm()); + Stage stageLogin = new Stage(); + stageLogin.setTitle("Anmelden"); + stageLogin.setScene(sceneLogin); + stageLogin.show(); + } public static void main(String[] args) { diff --git a/client/app/src/main/java/users/LoginControler.java b/client/app/src/main/java/users/LoginControler.java new file mode 100644 index 0000000..df20ac2 --- /dev/null +++ b/client/app/src/main/java/users/LoginControler.java @@ -0,0 +1,4 @@ +package users; + +public class LoginControler { +} diff --git a/client/app/src/main/resources/users/login.css b/client/app/src/main/resources/users/login.css new file mode 100644 index 0000000..e69de29 diff --git a/client/app/src/main/resources/users/login.fxml b/client/app/src/main/resources/users/login.fxml new file mode 100644 index 0000000..25a9267 --- /dev/null +++ b/client/app/src/main/resources/users/login.fxml @@ -0,0 +1,11 @@ + + + + + + + + + + +