All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.UIManager
java.lang.Object
|
+----java.awt.swing.UIManager
- public class UIManager
- extends Object
- implements Serializable
UIManager()
-
addPropertyChangeListener(PropertyChangeListener)
- Add a PropertyChangeListener to the listener list.
firePropertyChange(String, Object, Object)
- Support for reporting bound property changes.
get(Object)
-
getAuxiliaryLookAndFeels()
- Return the list of auxiliary look and feels (can be null).
getBorder(Object)
-
getColor(Object)
-
getDefaults()
-
getFont(Object)
-
getIcon(Object)
-
getLookAndFeel()
-
getString(Object)
-
getUI(JComponent)
-
put(Object, Object)
-
removePropertyChangeListener(PropertyChangeListener)
- Remove a PropertyChangeListener from the listener list.
setLookAndFeel(AbstractLookAndFeel)
- Set the current default look and feel.
setLookAndFeel(String)
-
UIManager
public UIManager()
getLookAndFeel
public static AbstractLookAndFeel getLookAndFeel()
- Returns:
- The current default look and feel, or null.
- See Also:
- setLookAndFeel
setLookAndFeel
public static void setLookAndFeel(AbstractLookAndFeel lnf) throws UnsupportedLookAndFeelException
- Set the current default look and feel.
This is a JavaBeans bound property.
- Throws:
UnsupportedLookAndFeelException
- If
lnf.isSupportedLookAndFeel()
is false. - See Also:
- getLookAndFeel
setLookAndFeel
public static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException
- Throws:
ClassNotFoundException
- If the LookAndFeel class could not be found.
- Throws:
InstantiationException
- If a new instance of the class couldn't be creatd.
- Throws:
IllegalAccessException
- If the class or initializer isn't accessible.
getDefaults
public static UIDefaults getDefaults()
getFont
public static Font getFont(Object key)
getColor
public static Color getColor(Object key)
getIcon
public static Icon getIcon(Object key)
getBorder
public static Border getBorder(Object key)
getString
public static String getString(Object key)
get
public static Object get(Object key)
put
public static Object put(Object key,
Object value)
getUI
public static ComponentUI getUI(JComponent target)
getAuxiliaryLookAndFeels
public static AbstractLookAndFeel[] getAuxiliaryLookAndFeels()
- Return the list of auxiliary look and feels (can be null).
addPropertyChangeListener
public static void addPropertyChangeListener(PropertyChangeListener listener)
- Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
- Parameters:
- listener - The PropertyChangeListener to be added
- See Also:
- PropertyChangeSupport
removePropertyChangeListener
public static void removePropertyChangeListener(PropertyChangeListener listener)
- Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
- Parameters:
- listener - The PropertyChangeListener to be removed
- See Also:
- PropertyChangeSupport
firePropertyChange
protected static void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
- Support for reporting bound property changes. If oldValue and
newValue are not equal and the PropertyChangeEvent listener list
isn't empty, then fire a PropertyChange event to each listener.
- Parameters:
- propertyName - The programmatic name of the property that was changed.
- oldValue - The old value of the property.
- newValue - The new value of the property.
- See Also:
- PropertyChangeSupport
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature