开发者

TextField Listener

开发者 https://www.devze.com 2022-12-28 04:29 出处:网络
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\'开发者_

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'开发者_StackOverflow中文版s it's peer. So which one Listener should I use? KeyListener and implement reasonably just one method?


You should use a Document Listener in that case.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号