TextField Listener

there is a swing JTextField, and I want to add a listener, so whenever a user types one letter, an event occurs. There is an event in scala api ValueChanged, but I don’t understand what it is. So which one Listenershould I use? KeyListenerand only one method is reasonable?

+3
source share
1 answer

In this case, you should use the Document Listener .

+3
source

Source: https://habr.com/ru/post/1743085/


All Articles