Package org.jdesktop.swingx.util
Class UIManagerUtils
- java.lang.Object
-
- org.jdesktop.swingx.util.UIManagerUtils
-
public final class UIManagerUtils extends java.lang.Object
Utility for working with the UIManager
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
htmlize(javax.swing.JComponent component, java.awt.Font font)
Forces the given component to use the given font for its html rendering.static void
initDefault(java.lang.String key, java.lang.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(java.lang.String key, java.lang.String defaultMetalObjName, java.lang.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.
-
-
-
Method Detail
-
initDefault
public static void initDefault(java.lang.String key, java.lang.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(java.lang.String key, java.lang.String defaultMetalObjName, java.lang.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(javax.swing.JComponent component, java.awt.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
-
-
-