improved ui

This commit is contained in:
Marco Kühn 2021-11-26 08:02:47 +01:00
parent 6fe7cb06c1
commit e3beeda254
2 changed files with 11 additions and 11 deletions

View File

@ -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");

View File

@ -10,8 +10,6 @@
<ColumnConstraints/>
<ColumnConstraints/>
<ColumnConstraints/>
<ColumnConstraints halignment="RIGHT"/>
<ColumnConstraints halignment="RIGHT"/>
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="ALWAYS" />
@ -33,14 +31,16 @@
<Label styleClass="inputLabel" GridPane.rowIndex="5">Priorität:</Label>
<Label styleClass="inputLabel" GridPane.rowIndex="6">Ganztägig:</Label>
<DatePicker GridPane.columnIndex="2" GridPane.rowIndex="1" maxWidth="300" minWidth="300"/>
<TextField GridPane.columnIndex="2" GridPane.rowIndex="2" maxWidth="300" minWidth="300"/>
<DatePicker GridPane.columnIndex="2" GridPane.rowIndex="3" maxWidth="300" minWidth="300"/>
<ComboBox GridPane.columnIndex="2" GridPane.rowIndex="4" maxWidth="300" minWidth="300"/>
<ComboBox GridPane.columnIndex="2" GridPane.rowIndex="5" maxWidth="100" minWidth="100"/>
<CheckBox GridPane.columnIndex="2" GridPane.rowIndex="6"/>
<DatePicker GridPane.columnIndex="1" GridPane.rowIndex="1" maxWidth="400" minWidth="400"/>
<TextField GridPane.columnIndex="1" GridPane.rowIndex="2" maxWidth="400" minWidth="400"/>
<DatePicker GridPane.columnIndex="1" GridPane.rowIndex="3" maxWidth="400" minWidth="400"/>
<ComboBox GridPane.columnIndex="1" GridPane.rowIndex="4" maxWidth="400" minWidth="400"/>
<ComboBox GridPane.columnIndex="1" GridPane.rowIndex="5" maxWidth="200" minWidth="200"/>
<CheckBox GridPane.columnIndex="1" GridPane.rowIndex="6"/>
<Button styleClass="mainButton" GridPane.columnIndex="4" GridPane.rowIndex="7" onAction="#createBtnClick" maxWidth="150" minWidth="150">Anlegen</Button>
<Button GridPane.columnIndex="3" GridPane.rowIndex="7" onAction="#abortBtnClick" maxWidth="150" minWidth="150" >Abbrechen</Button>
<HBox GridPane.columnIndex="1" GridPane.rowIndex="7" GridPane.columnSpan="2" alignment="CENTER_RIGHT">
<Button onAction="#abortBtnClick" maxWidth="150" minWidth="150" >Abbrechen</Button>
<Button styleClass="mainButton" onAction="#createBtnClick" maxWidth="150" minWidth="150">Anlegen</Button>
</HBox>
</GridPane>