Package Summary  Overview Summary

class:CaretListener [NONE]

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:caretUpdate(javax.swing.event.CaretEvent) [NONE]

  • caretUpdate

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

© 2020 Oracle Corporation and/or its affiliates