diff --git a/hellofx/app/src/main/java/client/CreateEventController.java b/hellofx/app/src/main/java/client/CreateEventController.java new file mode 100644 index 0000000..d78c55b --- /dev/null +++ b/hellofx/app/src/main/java/client/CreateEventController.java @@ -0,0 +1,27 @@ +package client; + +import javafx.event.ActionEvent; +import javafx.fxml.FXML; +import javafx.scene.Node; +import javafx.stage.Stage; + +public class CreateEventController { + + public CreateEventController(){} + + @FXML + public void initialize(){} + + + @FXML + protected void createBtnClick(ActionEvent event){ + Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow(); + stage.close(); + } + + @FXML + protected void abortBtnClick(ActionEvent event){ + Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow(); + stage.close(); + } +} diff --git a/hellofx/app/src/main/resources/client/create-event.fxml b/hellofx/app/src/main/resources/client/create-event.fxml index 91ea65a..34e83fc 100644 --- a/hellofx/app/src/main/resources/client/create-event.fxml +++ b/hellofx/app/src/main/resources/client/create-event.fxml @@ -3,8 +3,7 @@ - - +