i want an event to be fired everytime that the contents of a text pane are changed, any ideas how to do that? i started looking at
processInputMethod and TextHitInfo but those seem to be dead ends
Printable View
i want an event to be fired everytime that the contents of a text pane are changed, any ideas how to do that? i started looking at
processInputMethod and TextHitInfo but those seem to be dead ends
You want to add a DocumentListener to the JTextComponents Document Object.
i.e.
Code:myTextPane.getDocument().addDocumentListener(myDocumentListener);