swingx
Version 2005-08-19

org.jdesktop.swingx.util
Class UIManagerUtils

java.lang.Object
  extended by org.jdesktop.swingx.util.UIManagerUtils

public final class UIManagerUtils
extends Object

Utility for working with the UIManager


Method Summary
static void htmlize(JComponent component, Font font)
          Forces the given component to use the given font for its html rendering.
static void initDefault(String key, Object defaultObj)
          Initializes the object in the UIDefaults denoted by 'key' to defaultObj only if the key is not already in the UIDefaults.
static void initDefault(String key, String defaultMetalObjName, Object defaultObj)
          Initializes the object in the UIDefaults denoted by 'key' to either the property in the metal look and feel associated with defaultMetalObjName, or the defaultObj if all else fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initDefault

public static void initDefault(String key,
                               Object defaultObj)
Initializes the object in the UIDefaults denoted by 'key' to defaultObj only if the key is not already in the UIDefaults.

Parameters:
key -
defaultObj -

initDefault

public static void initDefault(String key,
                               String defaultMetalObjName,
                               Object defaultObj)
Initializes the object in the UIDefaults denoted by 'key' to either the property in the metal look and feel associated with defaultMetalObjName, or the defaultObj if all else fails.

Parameters:
key -
defaultMetalObjName -
defaultObj -

htmlize

public static void htmlize(JComponent component,
                           Font font)
Forces the given component to use the given font for its html rendering. Text must have been set before calling this method.

Parameters:
component -
font -

swingx
Version 2005-08-19