W3cubDocs

/OpenJDK 21

Interface CaretListener

All Superinterfaces:
EventListener
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

Modifier and Type Method Description
void caretUpdate(CaretEvent e)
Called when the caret position is updated.

Method Details

caretUpdate

void caretUpdate(CaretEvent e)
Called when the caret position is updated.
Parameters:
e - the caret event

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/event/CaretListener.html