[英]Which listener can know that the JTextPane value is changed?
I would like to know when JTextPane
content is changed. 我想知道
JTextPane
内容何时被更改。 I implemented a keyboard listener, but it is only detecting keyboard events. 我实现了一个键盘监听器,但它只检测键盘事件。 If the user pastes text via mouse or drag the text inside, then I am not enable to detect the
JTextPane
value is changed. 如果用户通过鼠标粘贴文本或将文本拖入内部,那么我无法检测
JTextPane
值是否已更改。 Which event listener can tell me that the JTextPane
value is changed? 哪个事件监听器可以告诉我
JTextPane
值是否已更改?
你必须寻找DocumentListener
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.