This commit is contained in:
Marc Beyer 2022-01-23 22:05:23 +01:00
parent 7aa615ce54
commit 4ce4445d50
4 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package customUI;
public class Tooltip extends javafx.scene.control.Tooltip {
public Tooltip(String tollTipText){
super(Converter.CONVERT_STR(tollTipText));
super(Converter.convertString(tollTipText));
}
}

View File

@ -61,6 +61,8 @@ public class CreateEventController {
throw new IllegalArgumentException("Bitte w\u00e4hle ein Datum aus");
}
System.out.println(datePickerDate.getValue());
Event event = new Event(
textName.getText(),
ComboBoxPriotity.getSelectionModel().getSelectedIndex(),
@ -78,7 +80,7 @@ public class CreateEventController {
Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();
stage.close();
} catch (HttpRequestException e) {
} catch (Exception e) {
labelError.setText(e.getMessage());
}
}

View File

@ -7,9 +7,8 @@ import helper.HttpRequestException;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.Scene;
import customUI.Button;
import customUI.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;

1
client/config.json Normal file
View File

@ -0,0 +1 @@
{"saveLogin":true,"id":1,"token":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJtYXJjIn0.NdOMxKKgH4ZNZ84uA81L57vJtR9OhTVyKwtNsOuZhFQ"}