@FXML public void initialize() { initializeWorkflowProcessesComboBox(); // TODO (artf231901): must move to model to handle other WorkflowProcessModel types instructionsTextArea.clear(); promotionPathCoordinateLabel.setText(getDefaultPromotionPathCoordinateTextFieldContent()); instructionsTextArea.setOnKeyTyped( (e) -> initiateButton.setDisable(!isDataRequiredForInitiateOk())); instructionsTextArea.addEventHandler( InputEvent.ANY, new EventHandler<InputEvent>() { @Override public void handle(InputEvent event) { initiateButton.setDisable(!isDataRequiredForInitiateOk()); } }); cancelButton.setOnAction((e) -> doCancel()); initiateButton.setDisable(!isDataRequiredForInitiateOk()); initiateButton.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { initiateWorkflow(); } }); }