Re: JTextArea not producing events




"Roedy Green" <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx> wrote in message
news:thd6r1902osvjl1n1k5sav193jjmcvmv2a@xxxxxxxxxx
> Run the little SSCCE below and you will not get any events at the
> InputMethodListener.
> Why not?

from the api docs (addInputMethodListener)

"Adds the specified input method listener to receive input method events from this component.
A component will only receive input method events from input methods if it also overrides
getInputMethodRequests to return an InputMethodRequests instance."


> How are you supposed to detect a
> change? It won't let you use an ActionListener or a TextListener.

DocumentListener


.