Uses of Class javax.swing.event.CaretEvent (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
javax.swing.event.CaretEvent

- Packages that use CaretEvent
  Package | Description
  --- | ---
  javax.swing.event | Provides for events fired by Swing components.
  javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components.

- - ### Uses of CaretEvent in javax.swing.event

    Methods in javax.swing.event with parameters of type CaretEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | CaretListener.`caretUpdate(CaretEvent e)` Called when the caret position is updated.

  - ### Uses of CaretEvent in javax.swing.text

    Methods in javax.swing.text with parameters of type CaretEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | JTextComponent.AccessibleJTextComponent.`caretUpdate(CaretEvent e)` Handles caret updates (fire appropriate property change event, which are AccessibleContext.ACCESSIBLE_CARET_PROPERTY and AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY).
    `protected void` | JTextComponent.`fireCaretUpdate(CaretEvent e)` Notifies all listeners that have registered interest for notification on this event type.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.