From e3beeda2540a62cf4f6b86baed457a739da49693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20K=C3=BChn?= Date: Fri, 26 Nov 2021 08:02:47 +0100 Subject: [PATCH] improved ui --- .../src/main/java/client/MainController.java | 2 +- .../main/resources/client/create-event.fxml | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hellofx/app/src/main/java/client/MainController.java b/hellofx/app/src/main/java/client/MainController.java index 793d94c..432efce 100644 --- a/hellofx/app/src/main/java/client/MainController.java +++ b/hellofx/app/src/main/java/client/MainController.java @@ -42,7 +42,7 @@ public class MainController { protected void onAddBtnClick(){ try{ FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("create-event.fxml")); - Scene scene = new Scene(fxmlLoader.load(), 850, 500); + Scene scene = new Scene(fxmlLoader.load(), 650, 500); scene.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("create-event.css")).toExternalForm()); Stage stage = new Stage(); stage.setTitle("Termin erstellen"); diff --git a/hellofx/app/src/main/resources/client/create-event.fxml b/hellofx/app/src/main/resources/client/create-event.fxml index 6807b86..45b51e4 100644 --- a/hellofx/app/src/main/resources/client/create-event.fxml +++ b/hellofx/app/src/main/resources/client/create-event.fxml @@ -10,8 +10,6 @@ - - @@ -33,14 +31,16 @@ - - - - - - + + + + + + - - + + + +