Uses of Class javax.swing.text.StyleConstants (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
javax.swing.text.StyleConstants

- Packages that use StyleConstants
  Package | Description
  --- | ---
  javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components.

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

    Subclasses of StyleConstants in javax.swing.text
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `StyleConstants.CharacterConstants` This is a typesafe enumeration of the well-known attributes that contribute to a character style.
    `static class` | `StyleConstants.ColorConstants` This is a typesafe enumeration of the well-known attributes that contribute to a color.
    `static class` | `StyleConstants.FontConstants` This is a typesafe enumeration of the well-known attributes that contribute to a font.
    `static class` | `StyleConstants.ParagraphConstants` This is a typesafe enumeration of the well-known attributes that contribute to a paragraph style.

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.