开发者

swing: appropriate Listener for JTextField change events

开发者 https://www.devze.com 2022-12-18 07:27 出处:网络
W开发者_运维知识库hich 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.)Use t

W开发者_运维知识库hich 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.)


Use the underlying document:

myTextField.getDocument().addDocumentListener();
0

精彩评论

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

关注公众号