swing:适用于JTextField更改事件的侦听器 [英] swing: appropriate Listener for JTextField change events
本文介绍了swing:适用于JTextField更改事件的侦听器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Which type of Listener do I use for listening to changed text events in a JTextField? (I should know this or be able to tell from the Javadoc but I can't seem to figure it out.)
推荐答案
使用基础文档:
myTextField.getDocument().addDocumentListener();
这篇关于swing:适用于JTextField更改事件的侦听器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文