All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.UIManager

java.lang.Object
   |
   +----com.sun.java.swing.UIManager

public class UIManager
extends Object
implements Serializable

Constructor Index

 o UIManager()

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Add a PropertyChangeListener to the listener list.
 o firePropertyChange(String, Object, Object)
Support for reporting bound property changes.
 o get(Object)
 o getAuxiliaryLookAndFeels()
Return the list of auxiliary look and feels (can be null).
 o getColor(Object)
 o getDefaults()
 o getFont(Object)
 o getIcon(Object)
 o getLookAndFeel()
 o getString(Object)
 o getUI(JComponent)
 o put(Object, Object)
 o removePropertyChangeListener(PropertyChangeListener)
Remove a PropertyChangeListener from the listener list.
 o setLookAndFeel(AbstractLookAndFeel)
Set the default look and feel.
 o setLookAndFeel(String)

Constructors

 o UIManager
 public UIManager()

Methods

 o getLookAndFeel
 public static AbstractLookAndFeel getLookAndFeel()
Returns:
The current default look and feel, or null.
See Also:
setLookAndFeel
 o setLookAndFeel
 public static void setLookAndFeel(AbstractLookAndFeel lnf)
Set the default look and feel.

The default value of this property is swing.basic.BasicLookAndFeel.

This is a JavaBeans bound property.

See Also:
getLookAndFeel
 o setLookAndFeel
 public static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
Throws: ClassNotFoundException
If the LookAndFeel class could not be found.
Throws: InstatiationException
If a new instance of the class couldn't be creatd.
Throws: IllegalAccessException
If the class or initializer isn't accessible.
 o getDefaults
 public static UIDefaults getDefaults()
 o getFont
 public static Font getFont(Object key)
 o getColor
 public static Color getColor(Object key)
 o getIcon
 public static Icon getIcon(Object key)
 o getString
 public static String getString(Object key)
 o get
 public static Object get(Object key)
 o put
 public static Object put(Object key,
                          Object value)
 o getUI
 public static ComponentUI getUI(JComponent target)
 o getAuxiliaryLookAndFeels
 public static AbstractLookAndFeel[] getAuxiliaryLookAndFeels()
Return the list of auxiliary look and feels (can be null).

 o addPropertyChangeListener
 public static synchronized 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
 o removePropertyChangeListener
 public static synchronized 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
 o 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