code: @FXML
      private void send_btn_on_click(ActionEvent event) {
          // Future proof for other uses of send event handler
          if (this.dialogType == DialogType.INPUT_TEXT) {
              this.textEntry = this.inputTextField.getText();
          }
  
          setResponse(DialogResponse.SEND);
          close();
      }
docs: Event handler when sendButton is pressed. Sets response to SEND and
  closes the dialog window.
  
  @param event Action event object