I am a bit confused with the whole eventListener business.

I have a JTextArea that I want to add a listener that detects when the text within has been changed. What is the best way to do this?

Any help welcome.