views:

157

answers:

1
+3  Q: 

TextField Listener

Hi, 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?

+3  A: 

You should use a Document Listener in that case.

Jonas