Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created October 10, 2019 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/4bc141cbac0e2e42833e8cc22dd2bb5c to your computer and use it in GitHub Desktop.
Save BMU-Verlag/4bc141cbac0e2e42833e8cc22dd2bb5c to your computer and use it in GitHub Desktop.
@FXML
private void handleInput(ActionEvent event) {
var newCharacter = ((Button) event.getSource()).getText();
if (input.getText().contains(",") && newCharacter.equals(",")) {
return;
}
input.setText(input.getText() + newCharacter);
switchEvalVisible();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment