PDA

Click to See Complete Forum and Search --> : Text Edit event


CaptainPinko
Apr 6th, 2002, 02:20 AM
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

Mrs Kensington
Apr 13th, 2002, 02:13 PM
You want to add a DocumentListener to the JTextComponents Document Object.

i.e.

myTextPane.getDocument().addDocumentListener(myDocumentListener);