## Uses of Interface
javax.swing.text.Caret

- Packages that use Caret
  Package | Description
  --- | ---
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components.

- - ### Uses of Caret in javax.swing.plaf.basic

    Classes in javax.swing.plaf.basic that implement Caret
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `BasicTextUI.BasicCaret`

    Methods in javax.swing.plaf.basic that return Caret
    Modifier and Type | Method and Description
    --- | ---
    `protected Caret` | BasicTextUI.`createCaret()` Creates the object to use for a caret.

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

    Classes in javax.swing.text that implement Caret
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultCaret` A default implementation of Caret.

    Methods in javax.swing.text that return Caret
    Modifier and Type | Method and Description
    --- | ---
    `abstract Caret` | EditorKit.`createCaret()` Fetches a caret that can navigate through views produced by the associated ViewFactory.
    `Caret` | DefaultEditorKit.`createCaret()` Fetches a caret that can navigate through views produced by the associated ViewFactory.
    `Caret` | JTextComponent.`getCaret()` Fetches the caret that allows text-oriented navigation over the view.
    `abstract Caret` | NavigationFilter.FilterBypass.`getCaret()` Returns the Caret that is changing.

    Methods in javax.swing.text with parameters of type Caret
    Modifier and Type | Method and Description
    --- | ---
    `void` | JTextComponent.`setCaret(Caret c)` Sets the caret to be used.

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, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.