Text


Inspect text as it is entered

  • Use a VerifyListener to inspect text as it is entered in the Text control.
  • Use event.doit to accept or reject the key stroke.
  • Get keystroke through event.text. (A backspace will return an empty string)

  • To react after changes have been made

  • Use a ModifyListener.
  • Keep in mind that VerifyListeners will be able to process key strokes before ModifyListeners.

  • You must be logged in to post a comment.