API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. UIManager View Source
Author(s)
Thomas Ball
Hans Muller
Since
Version
1.126 07/10/06
Serial
Hierarchy
 Object
      UIManager
Implements
 Serializable
Subclasses
Description
public class UIManager
  UIManager manages the current look and feel, the set of available look and feels, PropertyChangeListeners that are notified when the look and feel changes, look and feel defaults, and convenience methods for obtaining various default values.
See also:   
Constructors
public UIManager ()
Methods
Hide/Show inherited methods
publicstatic void addAuxiliaryLookAndFeel (LookAndFeel laf)
  Adds a LookAndFeel to the list of auxiliary look and feels.
publicstatic void addPropertyChangeListener (PropertyChangeListener listener)
  Adds a PropertyChangeListener to the listener list.
publicstatic Object get (Object key)
  Returns an object from the defaults.
publicstatic Object get (Object key, Locale l)
  Returns an object from the defaults that is appropriate for the given locale.
publicstatic LookAndFeel getAuxiliaryLookAndFeels ()
  Returns the list of auxiliary look and feels (can be null).
publicstatic boolean getBoolean (Object key)
  Returns a boolean from the defaults which is associated with the key value.
publicstatic boolean getBoolean (Object key, Locale l)
  Returns a boolean from the defaults which is associated with the key value and the given Locale.
publicstatic Border getBorder (Object key)
  Returns a border from the defaults.
publicstatic Border getBorder (Object key, Locale l)
  Returns a border from the defaults that is appropriate for the given locale.
publicstatic Color getColor (Object key)
  Returns a color from the defaults.
publicstatic Color getColor (Object key, Locale l)
  Returns a color from the defaults that is appropriate for the given locale.
publicstatic String getCrossPlatformLookAndFeelClassName ()
  Returns the name of the LookAndFeel class that implements the default cross platform look and feel -- the Java Look and Feel (JLF).
publicstatic UIDefaults getDefaults ()
  Returns the defaults.
publicstatic Dimension getDimension (Object key)
  Returns a dimension from the defaults.
publicstatic Dimension getDimension (Object key, Locale l)
  Returns a dimension from the defaults that is appropriate for the given locale.
publicstatic Font getFont (Object key)
  Returns a font from the defaults.
publicstatic Font getFont (Object key, Locale l)
  Returns a font from the defaults that is appropriate for the given locale.
publicstatic Icon getIcon (Object key)
  Returns an Icon from the defaults.
publicstatic Icon getIcon (Object key, Locale l)
  Returns an Icon from the defaults that is appropriate for the given locale.
publicstatic Insets getInsets (Object key)
  Returns an Insets object from the defaults.
publicstatic Insets getInsets (Object key, Locale l)
  Returns an Insets object from the defaults that is appropriate for the given locale.
publicstatic LookAndFeelInfo getInstalledLookAndFeels ()
  Returns an array of LookAndFeelInfos representing the LookAndFeel implementations currently available.
publicstatic int getInt (Object key)
  Returns an integer from the defaults.
publicstatic int getInt (Object key, Locale l)
  Returns an integer from the defaults that is appropriate for the given locale.
publicstatic LookAndFeel getLookAndFeel ()
  Returns the current look and feel or null.
publicstatic UIDefaults getLookAndFeelDefaults ()
  Returns the UIDefaults from the current look and feel, that were obtained at the time the look and feel was installed.
publicstatic PropertyChangeListener getPropertyChangeListeners ()
  Returns an array of all the PropertyChangeListeners added to this UIManager with addPropertyChangeListener().
publicstatic String getString (Object key)
  Returns a string from the defaults.
pack-privatestatic String getString (Object key, Component c)
  Returns a string from the defaults that is appropriate for the given locale.
publicstatic String getString (Object key, Locale l)
  Returns a string from the defaults that is appropriate for the given locale.
publicstatic String getSystemLookAndFeelClassName ()
  Returns the name of the LookAndFeel class that implements the native system look and feel if there is one, otherwise the name of the default cross platform LookAndFeel class.
publicstatic ComponentUI getUI (JComponent target)
  Returns the appropriate ComponentUI implementation for target.
publicstatic void installLookAndFeel (String name, String className)
  Adds the specified look and feel to the set of available look and feels.
publicstatic void installLookAndFeel (LookAndFeelInfo info)
  Adds the specified look and feel to the set of available look and feels.
publicstatic Object put (Object key, Object value)
  Stores an object in the developer defaults.
publicstatic boolean removeAuxiliaryLookAndFeel (LookAndFeel laf)
  Removes a LookAndFeel from the list of auxiliary look and feels.
publicstatic void removePropertyChangeListener (PropertyChangeListener listener)
  Removes a PropertyChangeListener from the listener list.
publicstatic void setInstalledLookAndFeels (LookAndFeelInfo infos) throws SecurityException
  Sets the set of available look and feels.
publicstatic void setLookAndFeel (LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException
  Sets the current look and feel to newLookAndFeel.
publicstatic void setLookAndFeel (String className) throws ClassNotFoundException InstantiationException IllegalAccessException UnsupportedLookAndFeelException
  Loads the LookAndFeel specified by the given class name, using the current thread's context class loader, and passes it to setLookAndFeel(LookAndFeel).
Fields
Hide/Show inherited fields
Nested Classes
  UIManager.LookAndFeelInfo
Provides a little information about an installed LookAndFeel for the sake of configuring a menu or for initial application set up.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar