Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextField Listener

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?

like image 692
ryskajakub Avatar asked Jul 15 '26 04:07

ryskajakub


1 Answers

You should use a Document Listener in that case.

like image 63
Jonas Avatar answered Jul 23 '26 01:07

Jonas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!