10

Which type of Listener do I use for listening to changed text events in a JTextField? (I should know this or be able to tell from the Javadoc but I can't seem to figure it out.)

Jason S
  • 184,598
  • 164
  • 608
  • 970

1 Answers1

20

Use the underlying document:

myTextField.getDocument().addDocumentListener();
JRL
  • 76,767
  • 18
  • 98
  • 146