## Uses of Interface
javax.swing.Painter

- Packages that use Painter
  Package | Description
  --- | ---
  javax.swing.plaf.nimbus | Provides user interface objects built according to the cross-platform Nimbus look and feel.

- - ### Uses of Painter in javax.swing.plaf.nimbus

    Classes in javax.swing.plaf.nimbus that implement Painter
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `AbstractRegionPainter` Convenient base class for defining Painter instances for rendering a region or component in Nimbus.

    Methods in javax.swing.plaf.nimbus that return Painter
    Modifier and Type | Method | Description
    --- | --- | ---
    `Painter` | NimbusStyle.`getBackgroundPainter(SynthContext ctx)` Gets the appropriate background Painter, if there is one, for the state specified in the given SynthContext.
    `Painter` | NimbusStyle.`getBorderPainter(SynthContext ctx)` Gets the appropriate border Painter, if there is one, for the state specified in the given SynthContext.
    `Painter` | NimbusStyle.`getForegroundPainter(SynthContext ctx)` Gets the appropriate foreground Painter, if there is one, for the state specified in the given SynthContext.

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.