Detecting selected text change in a JTextArea



I would like to detect any selected text change in a JTextArea, wether
the selection changed using the mouse button or the shift+arrow keys.
Is there a way to detect that?

CJ

.