5

I would like to know when JTextPane content is changed. 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. Which event listener can tell me that the JTextPane value is changed?

Nathan
  • 8,093
  • 8
  • 50
  • 76
DNB5brims
  • 29,344
  • 50
  • 131
  • 195

1 Answers1

10

you have to look for DocumentListener

mKorbel
  • 109,525
  • 20
  • 134
  • 319