How to Write a Caret Listener
by, 04-26-2012 at 08:23 PM (649 Views)
In text component when selection gets changed or moved by the caret (i.e the cursor which show insertion point), caret events take place. Document of the text component may be initiating the caret event when text is inserted or removed. Caret listener may be attached to any subclass of the JTextComponent instance with method addCaretListener.