Interface CaretListener

All Superinterfaces:
All Known Implementing Classes:
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport, JPasswordField.AccessibleJPasswordField, JTextArea.AccessibleJTextArea, JTextComponent.AccessibleJTextComponent, JTextField.AccessibleJTextField
public interface CaretListener
extends EventListener

Listener for changes in the caret position of a text component.

Method Summary

All Methods Instance Methods Abstract Methods
Modifier and Type Method Description
void caretUpdate​(CaretEvent e)

Called when the caret position is updated.

Method Detail


void caretUpdate​(CaretEvent e)

Called when the caret position is updated.

e - the caret event