| 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BasicTextUI.BasicHighlighter | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Highlighter | BasicTextUI. createHighlighter()Creates the object to use for adding highlights. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultHighlighterImplements the Highlighter interfaces. | 
| class  | LayeredHighlighter | 
| Modifier and Type | Method and Description | 
|---|---|
| Highlighter | JTextComponent. getHighlighter()Fetches the object responsible for making highlights. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JTextComponent. setHighlighter(Highlighter h)Sets the highlighter 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, 2023, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.