Uses of Class javax.swing.UIDefaults (Java Platform SE 8 )
Date: 2026-01-21

## Uses of Class
javax.swing.UIDefaults

- Packages that use UIDefaults
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.
  javax.swing.plaf.multi | Provides user interface objects that combine two or more look and feels.
  javax.swing.plaf.nimbus | Provides user interface objects built according to the cross-platform Nimbus look and feel.
  javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated.

- - ### Uses of UIDefaults in javax.swing

    Methods in javax.swing that return UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `static UIDefaults` | UIManager.`getDefaults()` Returns the defaults.
    `UIDefaults` | LookAndFeel.`getDefaults()` Returns the look and feel defaults.
    `static UIDefaults` | UIManager.`getLookAndFeelDefaults()` Returns the `UIDefaults` from the current look and feel, that were obtained at the time the look and feel was installed.

    Methods in javax.swing with parameters of type UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `Object` | UIDefaults.LazyValue.`createValue(UIDefaults table)` Creates the actual value retrieved from the `UIDefaults` table.
    `Object` | UIDefaults.ActiveValue.`createValue(UIDefaults table)` Creates the value retrieved from the `UIDefaults` table.
    `Object` | UIDefaults.ProxyLazyValue.`createValue(UIDefaults table)` Creates the value retrieved from the `UIDefaults` table.
    `Object` | UIDefaults.LazyInputMap.`createValue(UIDefaults table)` Creates an `InputMap` with the bindings that are passed in.

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

    Methods in javax.swing.plaf.basic that return UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `UIDefaults` | BasicLookAndFeel.`getDefaults()` Returns the look and feel defaults.

    Methods in javax.swing.plaf.basic with parameters of type UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | BasicLookAndFeel.`initClassDefaults(UIDefaults table)` Populates `table` with mappings from `uiClassID` to the fully qualified name of the ui class.
    `protected void` | BasicLookAndFeel.`initComponentDefaults(UIDefaults table)` Populates `table` with the defaults for the basic look and feel.
    `protected void` | BasicLookAndFeel.`initSystemColorDefaults(UIDefaults table)` Populates `table` with system colors.
    `protected void` | BasicLookAndFeel.`loadSystemColors(UIDefaults table, String[] systemColors, boolean useNative)` Populates `table` with the `name-color` pairs in `systemColors`.

  - ### Uses of UIDefaults in javax.swing.plaf.metal

    Methods in javax.swing.plaf.metal that return UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `UIDefaults` | MetalLookAndFeel.`getDefaults()` Returns the look and feel defaults.

    Methods in javax.swing.plaf.metal with parameters of type UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `void` | OceanTheme.`addCustomEntriesToTable(UIDefaults table)` Add this theme's custom entries to the defaults table.
    `void` | MetalTheme.`addCustomEntriesToTable(UIDefaults table)` Adds values specific to this theme to the defaults table.
    `protected void` | MetalLookAndFeel.`initClassDefaults(UIDefaults table)` Populates `table` with mappings from `uiClassID` to the fully qualified name of the ui class.
    `protected void` | MetalLookAndFeel.`initComponentDefaults(UIDefaults table)` Populates `table` with the defaults for metal.
    `protected void` | MetalLookAndFeel.`initSystemColorDefaults(UIDefaults table)` Populates `table` with system colors.

  - ### Uses of UIDefaults in javax.swing.plaf.multi

    Methods in javax.swing.plaf.multi that return UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `UIDefaults` | MultiLookAndFeel.`getDefaults()` Creates, initializes, and returns the look and feel specific defaults.

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

    Methods in javax.swing.plaf.nimbus that return UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `UIDefaults` | NimbusLookAndFeel.`getDefaults()` Returns the defaults for this SynthLookAndFeel.

  - ### Uses of UIDefaults in javax.swing.plaf.synth

    Methods in javax.swing.plaf.synth that return UIDefaults
    Modifier and Type | Method and Description
    --- | ---
    `UIDefaults` | SynthLookAndFeel.`getDefaults()` Returns the defaults for this SynthLookAndFeel.

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.