3

there's a swing JTextField, and I want to add a listener, so whenever the users types a single letter, there's an event. There's a ValueChanged event in scala api, but I don't get it what's it's peer. So which one Listener should I use? KeyListener and implement reasonably just one method?

Jonas
  • 121,568
  • 97
  • 310
  • 388
ryskajakub
  • 6,351
  • 8
  • 45
  • 75
  • You can find an example [here](http://stackoverflow.com/questions/3953208/value-change-listener-to-jtextfield) – Adil Apr 30 '13 at 17:35

1 Answers1

3

You should use a Document Listener in that case.

Jonas
  • 121,568
  • 97
  • 310
  • 388