Updated onAddBtnClick
This commit is contained in:
parent
47739a3783
commit
31dbeec55a
@ -105,22 +105,14 @@ public class MainController {
|
|||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
protected void onAddBtnClick() {
|
protected void onAddBtnClick() {
|
||||||
try {
|
MainApplication.loadScene(
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(
|
"Termin erstellen",
|
||||||
MainApplication.class.getResource("create-event.fxml"));
|
"create-event.fxml",
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 650, 650);
|
"create-event.css",
|
||||||
scene.getStylesheets().add(Objects.requireNonNull(
|
650,
|
||||||
MainApplication.class.getResource("create-event.css")).toExternalForm());
|
650,
|
||||||
Stage stage = new Stage();
|
null
|
||||||
stage.setTitle("Termin erstellen");
|
);
|
||||||
stage.setScene(scene);
|
|
||||||
stage.initModality(Modality.APPLICATION_MODAL);
|
|
||||||
stage.setResizable(false);
|
|
||||||
//stage.initStyle(StageStyle.UNDECORATED);
|
|
||||||
stage.showAndWait();
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
updateEvents();
|
updateEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user