import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.text.Text; public class GUIController { @FXML Text actiontarget; @FXML protected void handleSubmitButton(ActionEvent event) { actiontarget.setText(actiontarget.getText()+" yay"); } }