From f0405b5d8601071ea75f50dae4e246a95da8cfa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20K=C3=BChn?= Date: Thu, 13 Jan 2022 10:11:09 +0100 Subject: [PATCH] Added timePicker to mainGrid --- client/app/src/main/java/main/CreateEventController.java | 8 +++++--- client/app/src/main/resources/main/create-event.fxml | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/app/src/main/java/main/CreateEventController.java b/client/app/src/main/java/main/CreateEventController.java index 64c6e2b..f98ffd7 100644 --- a/client/app/src/main/java/main/CreateEventController.java +++ b/client/app/src/main/java/main/CreateEventController.java @@ -13,7 +13,7 @@ import res.Event; public class CreateEventController { @FXML - public GridPane grid; + public GridPane mainGrid; @FXML public DatePicker datePickerDate; @FXML @@ -42,12 +42,14 @@ public class CreateEventController { JFXTimePicker timePickerStart = new JFXTimePicker(); timeStart = timePickerStart; timePickerStart.set24HourView(true); - grid.add(timePickerStart, 1 , 3); + timePickerStart.getStyleClass().add("timePicker"); + mainGrid.add(timePickerStart, 1 , 3); JFXTimePicker timePickerEnd = new JFXTimePicker(); timeEnd = timePickerEnd; timePickerEnd.set24HourView(true); - grid.add(timePickerEnd, 1 , 4); + timePickerEnd.getStyleClass().add("timePicker"); + mainGrid.add(timePickerEnd, 1 , 4); } diff --git a/client/app/src/main/resources/main/create-event.fxml b/client/app/src/main/resources/main/create-event.fxml index c56066c..e25fcdd 100644 --- a/client/app/src/main/resources/main/create-event.fxml +++ b/client/app/src/main/resources/main/create-event.fxml @@ -5,7 +5,7 @@ - @@ -39,8 +39,6 @@ - -