- java.lang.Object
- 
- javax.swing.UIManager
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class UIManager extends Object implements Serializable UIManagermanages the current look and feel, the set of available look and feels,PropertyChangeListenersthat are notified when the look and feel changes, look and feel defaults, and convenience methods for obtaining various default values.Specifying the look and feelThe look and feel can be specified in two distinct ways: by specifying the fully qualified name of the class for the look and feel, or by creating an instance ofLookAndFeeland passing it tosetLookAndFeel. The following example illustrates setting the look and feel to the system look and feel:UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); The following example illustrates setting the look and feel based on class name:UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");Once the look and feel has been changed it is imperative to invokeupdateUIon allJComponents. The methodSwingUtilities.updateComponentTreeUI(java.awt.Component)makes it easy to applyupdateUIto a containment hierarchy. Refer to it for details. The exact behavior of not invokingupdateUIafter changing the look and feel is unspecified. It is very possible to receive unexpected exceptions, painting problems, or worse.Default look and feelThe class used for the default look and feel is chosen in the following manner:- If the system property swing.defaultlafisnon-null, use its value as the default look and feel class name.
- If the Propertiesfileswing.propertiesexists and contains the keyswing.defaultlaf, use its value as the default look and feel class name. The location that is checked forswing.propertiesmay vary depending upon the implementation of the Java platform. Typically theswing.propertiesfile is located in theconfsubdirectory of the Java installation directory. Refer to the release notes of the implementation being used for further details.
- Otherwise use the cross platform look and feel.
 DefaultsUIManagermanages three sets ofUIDefaults. In order, they are:- Developer defaults. With few exceptions Swing does not alter the developer defaults; these are intended to be modified and used by the developer.
- Look and feel defaults. The look and feel defaults are
       supplied by the look and feel at the time it is installed as the
       current look and feel (setLookAndFeel()is invoked). The look and feel defaults can be obtained using thegetLookAndFeelDefaults()method.
- System defaults. The system defaults are provided by Swing.
 getmethods results in checking each of the defaults, in order, returning the firstnon-nullvalue. For example, invokingUIManager.getString("Table.foreground")results in first checking developer defaults. If the developer defaults contain a value for"Table.foreground"it is returned, otherwise the look and feel defaults are checked, followed by the system defaults.It's important to note that getDefaultsreturns a custom instance ofUIDefaultswith this resolution logic built into it. For example,UIManager.getDefaults().getString("Table.foreground")is equivalent toUIManager.getString("Table.foreground"). Both resolve using the algorithm just described. In many places the documentation uses the word defaults to refer to the custom instance ofUIDefaultswith the resolution logic as previously described.When the look and feel is changed, UIManageralters only the look and feel defaults; the developer and system defaults are not altered by theUIManagerin any way.The set of defaults a particular look and feel supports is defined and documented by that look and feel. In addition, each look and feel, or ComponentUIprovided by a look and feel, may access the defaults at different times in their life cycle. Some look and feels may aggressively look up defaults, so that changing a default may not have an effect after installing the look and feel. Other look and feels may lazily access defaults so that a change to the defaults may effect an existing look and feel. Finally, other look and feels might not configure themselves from the defaults table in any way. None-the-less it is usually the case that a look and feel expects certain defaults, so that in general aComponentUIprovided by one look and feel will not work with another look and feel.Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beanspackage. Please seeXMLEncoder.- Since:
- 1.2
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUIManager.LookAndFeelInfoProvides a little information about an installedLookAndFeelfor the sake of configuring a menu or for initial application set up.
 - 
Constructor SummaryConstructors Constructor Description UIManager()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAuxiliaryLookAndFeel(LookAndFeel laf)Adds aLookAndFeelto the list of auxiliary look and feels.static voidaddPropertyChangeListener(PropertyChangeListener listener)Adds aPropertyChangeListenerto the listener list.static LookAndFeelcreateLookAndFeel(String name)Creates a supported built-in JavaLookAndFeelspecified by the givenL&F namename.static Objectget(Object key)Returns an object from the defaults.static Objectget(Object key, Locale l)Returns an object from the defaults that is appropriate for the given locale.static LookAndFeel[]getAuxiliaryLookAndFeels()Returns the list of auxiliary look and feels (can benull).static booleangetBoolean(Object key)Returns a boolean from the defaults which is associated with the key value.static booleangetBoolean(Object key, Locale l)Returns a boolean from the defaults which is associated with the key value and the givenLocale.static BordergetBorder(Object key)Returns a border from the defaults.static BordergetBorder(Object key, Locale l)Returns a border from the defaults that is appropriate for the given locale.static ColorgetColor(Object key)Returns a color from the defaults.static ColorgetColor(Object key, Locale l)Returns a color from the defaults that is appropriate for the given locale.static StringgetCrossPlatformLookAndFeelClassName()Returns the name of theLookAndFeelclass that implements the default cross platform look and feel -- the Java Look and Feel (JLF).static UIDefaultsgetDefaults()Returns the defaults.static DimensiongetDimension(Object key)Returns a dimension from the defaults.static DimensiongetDimension(Object key, Locale l)Returns a dimension from the defaults that is appropriate for the given locale.static FontgetFont(Object key)Returns a font from the defaults.static FontgetFont(Object key, Locale l)Returns a font from the defaults that is appropriate for the given locale.static IcongetIcon(Object key)Returns anIconfrom the defaults.static IcongetIcon(Object key, Locale l)Returns anIconfrom the defaults that is appropriate for the given locale.static InsetsgetInsets(Object key)Returns anInsetsobject from the defaults.static InsetsgetInsets(Object key, Locale l)Returns anInsetsobject from the defaults that is appropriate for the given locale.static UIManager.LookAndFeelInfo[]getInstalledLookAndFeels()Returns an array ofLookAndFeelInfos representing theLookAndFeelimplementations currently available.static intgetInt(Object key)Returns an integer from the defaults.static intgetInt(Object key, Locale l)Returns an integer from the defaults that is appropriate for the given locale.static LookAndFeelgetLookAndFeel()Returns the current look and feel ornull.static UIDefaultsgetLookAndFeelDefaults()Returns theUIDefaultsfrom the current look and feel, that were obtained at the time the look and feel was installed.static PropertyChangeListener[]getPropertyChangeListeners()Returns an array of all thePropertyChangeListeners added to this UIManager with addPropertyChangeListener().static StringgetString(Object key)Returns a string from the defaults.static StringgetString(Object key, Locale l)Returns a string from the defaults that is appropriate for the given locale.static StringgetSystemLookAndFeelClassName()Returns the name of theLookAndFeelclass that implements the native system look and feel if there is one, otherwise the name of the default cross platformLookAndFeelclass.static ComponentUIgetUI(JComponent target)Returns the appropriateComponentUIimplementation fortarget.static voidinstallLookAndFeel(String name, String className)Adds the specified look and feel to the set of available look and feels.static voidinstallLookAndFeel(UIManager.LookAndFeelInfo info)Adds the specified look and feel to the set of available look and feels.static Objectput(Object key, Object value)Stores an object in the developer defaults.static booleanremoveAuxiliaryLookAndFeel(LookAndFeel laf)Removes aLookAndFeelfrom the list of auxiliary look and feels.static voidremovePropertyChangeListener(PropertyChangeListener listener)Removes aPropertyChangeListenerfrom the listener list.static voidsetInstalledLookAndFeels(UIManager.LookAndFeelInfo[] infos)Sets the set of available look and feels.static voidsetLookAndFeel(String className)Loads theLookAndFeelspecified by the given class name, using the current thread's context class loader, and passes it tosetLookAndFeel(LookAndFeel).static voidsetLookAndFeel(LookAndFeel newLookAndFeel)Sets the current look and feel tonewLookAndFeel.
 
- 
- 
- 
Method Detail- 
getInstalledLookAndFeelspublic static UIManager.LookAndFeelInfo[] getInstalledLookAndFeels() Returns an array ofLookAndFeelInfos representing theLookAndFeelimplementations currently available. TheLookAndFeelInfoobjects can be used by an application to construct a menu of look and feel options for the user, or to determine which look and feel to set at startup time. To avoid the penalty of creating numerousLookAndFeelobjects,LookAndFeelInfomaintains the class name of theLookAndFeelclass, not the actualLookAndFeelinstance.The following example illustrates setting the current look and feel from an instance of LookAndFeelInfo:UIManager.setLookAndFeel(info.getClassName()); - Returns:
- an array of LookAndFeelInfoobjects
- See Also:
- setLookAndFeel(javax.swing.LookAndFeel)
 
 - 
setInstalledLookAndFeelspublic static void setInstalledLookAndFeels(UIManager.LookAndFeelInfo[] infos) throws SecurityException Sets the set of available look and feels. While this method does not check to ensure all of theLookAndFeelInfosarenon-null, it is strongly recommended that onlynon-nullvalues are supplied in theinfosarray.- Parameters:
- infos- set of- LookAndFeelInfoobjects specifying the available look and feels
- Throws:
- NullPointerException- if- infosis- null
- SecurityException
- See Also:
- getInstalledLookAndFeels()
 
 - 
installLookAndFeelpublic static void installLookAndFeel(UIManager.LookAndFeelInfo info) Adds the specified look and feel to the set of available look and feels. While this method allows anullinfo, it is strongly recommended that anon-nullvalue be used.- Parameters:
- info- a- LookAndFeelInfoobject that names the look and feel and identifies the class that implements it
- See Also:
- setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])
 
 - 
installLookAndFeelpublic static void installLookAndFeel(String name, String className) Adds the specified look and feel to the set of available look and feels. While this method does not check the arguments in any way, it is strongly recommended thatnon-nullvalues be supplied.- Parameters:
- name- descriptive name of the look and feel
- className- name of the class that implements the look and feel
- See Also:
- setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])
 
 - 
getLookAndFeelpublic static LookAndFeel getLookAndFeel() Returns the current look and feel ornull.- Returns:
- current look and feel, or null
- See Also:
- setLookAndFeel(javax.swing.LookAndFeel)
 
 - 
createLookAndFeelpublic static LookAndFeel createLookAndFeel(String name) throws UnsupportedLookAndFeelException Creates a supported built-in JavaLookAndFeelspecified by the givenL&F namename.- Parameters:
- name- a- Stringspecifying the name of the built-in look and feel
- Returns:
- the built-in LookAndFeelobject
- Throws:
- NullPointerException- if- nameis- null
- UnsupportedLookAndFeelException- if the built-in Java- L&Fis not found for the given name or it is not supported by the underlying platform
- Since:
- 9
- See Also:
- LookAndFeel.getName(),- LookAndFeel.isSupportedLookAndFeel()
 
 - 
setLookAndFeelpublic static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException Sets the current look and feel tonewLookAndFeel. If the current look and feel isnon-nulluninitializeis invoked on it. IfnewLookAndFeelisnon-null,initializeis invoked on it followed bygetDefaults. The defaults returned fromnewLookAndFeel.getDefaults()replace those of the defaults from the previous look and feel. If thenewLookAndFeelisnull, the look and feel defaults are set tonull.A value of nullcan be used to set the look and feel tonull. As theLookAndFeelis required for most of Swing to function, setting theLookAndFeeltonullis strongly discouraged.This is a JavaBeans bound property. - Parameters:
- newLookAndFeel-- LookAndFeelto install
- Throws:
- UnsupportedLookAndFeelException- if- newLookAndFeelis- non-nulland- newLookAndFeel.isSupportedLookAndFeel()returns- false
- See Also:
- getLookAndFeel()
 
 - 
setLookAndFeelpublic static void setLookAndFeel(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException Loads theLookAndFeelspecified by the given class name, using the current thread's context class loader, and passes it tosetLookAndFeel(LookAndFeel).- Parameters:
- className- a string specifying the name of the class that implements the look and feel
- Throws:
- ClassNotFoundException- if the- LookAndFeelclass could not be found
- InstantiationException- if a new instance of the class couldn't be created
- IllegalAccessException- if the class or initializer isn't accessible
- UnsupportedLookAndFeelException- if- lnf.isSupportedLookAndFeel()is false
- ClassCastException- if- classNamedoes not identify a class that extends- LookAndFeel
- NullPointerException- if- classNameis- null
 
 - 
getSystemLookAndFeelClassNamepublic static String getSystemLookAndFeelClassName() Returns the name of theLookAndFeelclass that implements the native system look and feel if there is one, otherwise the name of the default cross platformLookAndFeelclass. This value can be overriden by setting theswing.systemlafsystem property.- Returns:
- the Stringof theLookAndFeelclass
- See Also:
- setLookAndFeel(javax.swing.LookAndFeel),- getCrossPlatformLookAndFeelClassName()
 
 - 
getCrossPlatformLookAndFeelClassNamepublic static String getCrossPlatformLookAndFeelClassName() Returns the name of theLookAndFeelclass that implements the default cross platform look and feel -- the Java Look and Feel (JLF). This value can be overriden by setting theswing.crossplatformlafsystem property.- Returns:
- a string with the JLF implementation-class
- See Also:
- setLookAndFeel(javax.swing.LookAndFeel),- getSystemLookAndFeelClassName()
 
 - 
getDefaultspublic static UIDefaults getDefaults() Returns the defaults. The returned defaults resolve using the logic specified in the class documentation.- Returns:
- a UIDefaultsobject containing the default values
 
 - 
getFontpublic static Font getFont(Object key) Returns a font from the defaults. If the value forkeyis not aFont,nullis returned.- Parameters:
- key- an- Objectspecifying the font
- Returns:
- the Fontobject
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getFontpublic static Font getFont(Object key, Locale l) Returns a font from the defaults that is appropriate for the given locale. If the value forkeyis not aFont,nullis returned.- Parameters:
- key- an- Objectspecifying the font
- l- the- Localefor which the font is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Fontobject
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getColorpublic static Color getColor(Object key) Returns a color from the defaults. If the value forkeyis not aColor,nullis returned.- Parameters:
- key- an- Objectspecifying the color
- Returns:
- the Colorobject
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getColorpublic static Color getColor(Object key, Locale l) Returns a color from the defaults that is appropriate for the given locale. If the value forkeyis not aColor,nullis returned.- Parameters:
- key- an- Objectspecifying the color
- l- the- Localefor which the color is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Colorobject
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getIconpublic static Icon getIcon(Object key) Returns anIconfrom the defaults. If the value forkeyis not anIcon,nullis returned.- Parameters:
- key- an- Objectspecifying the icon
- Returns:
- the Iconobject
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getIconpublic static Icon getIcon(Object key, Locale l) Returns anIconfrom the defaults that is appropriate for the given locale. If the value forkeyis not anIcon,nullis returned.- Parameters:
- key- an- Objectspecifying the icon
- l- the- Localefor which the icon is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Iconobject
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getBorderpublic static Border getBorder(Object key) Returns a border from the defaults. If the value forkeyis not aBorder,nullis returned.- Parameters:
- key- an- Objectspecifying the border
- Returns:
- the Borderobject
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getBorderpublic static Border getBorder(Object key, Locale l) Returns a border from the defaults that is appropriate for the given locale. If the value forkeyis not aBorder,nullis returned.- Parameters:
- key- an- Objectspecifying the border
- l- the- Localefor which the border is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Borderobject
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getStringpublic static String getString(Object key) Returns a string from the defaults. If the value forkeyis not aString,nullis returned.- Parameters:
- key- an- Objectspecifying the string
- Returns:
- the String
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getStringpublic static String getString(Object key, Locale l) Returns a string from the defaults that is appropriate for the given locale. If the value forkeyis not aString,nullis returned.- Parameters:
- key- an- Objectspecifying the string
- l- the- Localefor which the string is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the String
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getIntpublic static int getInt(Object key) Returns an integer from the defaults. If the value forkeyis not anInteger, or does not exist,0is returned.- Parameters:
- key- an- Objectspecifying the int
- Returns:
- the int
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getIntpublic static int getInt(Object key, Locale l) Returns an integer from the defaults that is appropriate for the given locale. If the value forkeyis not anInteger, or does not exist,0is returned.- Parameters:
- key- an- Objectspecifying the int
- l- the- Localefor which the int is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the int
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getBooleanpublic static boolean getBoolean(Object key) Returns a boolean from the defaults which is associated with the key value. If the key is not found or the key doesn't represent a boolean value thenfalseis returned.- Parameters:
- key- an- Objectspecifying the key for the desired boolean value
- Returns:
- the boolean value corresponding to the key
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getBooleanpublic static boolean getBoolean(Object key, Locale l) Returns a boolean from the defaults which is associated with the key value and the givenLocale. If the key is not found or the key doesn't represent a boolean value thenfalsewill be returned.- Parameters:
- key- an- Objectspecifying the key for the desired boolean value
- l- the- Localefor which the boolean is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the boolean value corresponding to the key
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getInsetspublic static Insets getInsets(Object key) Returns anInsetsobject from the defaults. If the value forkeyis not anInsets,nullis returned.- Parameters:
- key- an- Objectspecifying the- Insetsobject
- Returns:
- the Insetsobject
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getInsetspublic static Insets getInsets(Object key, Locale l) Returns anInsetsobject from the defaults that is appropriate for the given locale. If the value forkeyis not anInsets,nullis returned.- Parameters:
- key- an- Objectspecifying the- Insetsobject
- l- the- Localefor which the object is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Insetsobject
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getDimensionpublic static Dimension getDimension(Object key) Returns a dimension from the defaults. If the value forkeyis not aDimension,nullis returned.- Parameters:
- key- an- Objectspecifying the dimension object
- Returns:
- the Dimensionobject
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getDimensionpublic static Dimension getDimension(Object key, Locale l) Returns a dimension from the defaults that is appropriate for the given locale. If the value forkeyis not aDimension,nullis returned.- Parameters:
- key- an- Objectspecifying the dimension object
- l- the- Localefor which the object is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Dimensionobject
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
getpublic static Object get(Object key) Returns an object from the defaults.- Parameters:
- key- an- Objectspecifying the desired object
- Returns:
- the Object
- Throws:
- NullPointerException- if- keyis- null
 
 - 
getpublic static Object get(Object key, Locale l) Returns an object from the defaults that is appropriate for the given locale.- Parameters:
- key- an- Objectspecifying the desired object
- l- the- Localefor which the object is desired; refer to- UIDefaultsfor details on how a- null- Localeis handled
- Returns:
- the Object
- Throws:
- NullPointerException- if- keyis- null
- Since:
- 1.4
 
 - 
putpublic static Object put(Object key, Object value) Stores an object in the developer defaults. This is a cover method forgetDefaults().put(key, value). This only effects the developer defaults, not the system or look and feel defaults.- Parameters:
- key- an- Objectspecifying the retrieval key
- value- the- Objectto store; refer to- UIDefaultsfor details on how- nullis handled
- Returns:
- the Objectreturned byUIDefaults.put(java.lang.Object, java.lang.Object)
- Throws:
- NullPointerException- if- keyis- null
- See Also:
- UIDefaults.put(java.lang.Object, java.lang.Object)
 
 - 
getUIpublic static ComponentUI getUI(JComponent target) Returns the appropriateComponentUIimplementation fortarget. Typically, this is a cover forgetDefaults().getUI(target). However, if an auxiliary look and feel has been installed, this first invokesgetUI(target)on the multiplexing look and feel's defaults, and returns that value if it isnon-null.- Parameters:
- target- the- JComponentto return the- ComponentUIfor
- Returns:
- the ComponentUIobject fortarget
- Throws:
- NullPointerException- if- targetis- null
- See Also:
- UIDefaults.getUI(javax.swing.JComponent)
 
 - 
getLookAndFeelDefaultspublic static UIDefaults getLookAndFeelDefaults() Returns theUIDefaultsfrom the current look and feel, that were obtained at the time the look and feel was installed.In general, developers should use the UIDefaultsreturned fromgetDefaults(). As the current look and feel may expect certain values to exist, altering theUIDefaultsreturned from this method could have unexpected results.- Returns:
- UIDefaultsfrom the current look and feel
- See Also:
- getDefaults(),- setLookAndFeel(LookAndFeel),- LookAndFeel.getDefaults()
 
 - 
addAuxiliaryLookAndFeelpublic static void addAuxiliaryLookAndFeel(LookAndFeel laf) Adds aLookAndFeelto the list of auxiliary look and feels. The auxiliary look and feels tell the multiplexing look and feel what otherLookAndFeelclasses for a component instance are to be used in addition to the defaultLookAndFeelclass when creating a multiplexing UI. The change will only take effect when a new UI class is created or when the default look and feel is changed on a component instance.Note these are not the same as the installed look and feels. - Parameters:
- laf- the- LookAndFeelobject
- See Also:
- removeAuxiliaryLookAndFeel(javax.swing.LookAndFeel),- setLookAndFeel(javax.swing.LookAndFeel),- getAuxiliaryLookAndFeels(),- getInstalledLookAndFeels()
 
 - 
removeAuxiliaryLookAndFeelpublic static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) Removes aLookAndFeelfrom the list of auxiliary look and feels. The auxiliary look and feels tell the multiplexing look and feel what otherLookAndFeelclasses for a component instance are to be used in addition to the defaultLookAndFeelclass when creating a multiplexing UI. The change will only take effect when a new UI class is created or when the default look and feel is changed on a component instance.Note these are not the same as the installed look and feels. - Parameters:
- laf- the- LookAndFeelto be removed
- Returns:
- true if the LookAndFeelwas removed from the list
- See Also:
- removeAuxiliaryLookAndFeel(javax.swing.LookAndFeel),- getAuxiliaryLookAndFeels(),- setLookAndFeel(javax.swing.LookAndFeel),- getInstalledLookAndFeels()
 
 - 
getAuxiliaryLookAndFeelspublic static LookAndFeel[] getAuxiliaryLookAndFeels() Returns the list of auxiliary look and feels (can benull). The auxiliary look and feels tell the multiplexing look and feel what otherLookAndFeelclasses for a component instance are to be used in addition to the default LookAndFeel class when creating a multiplexing UI.Note these are not the same as the installed look and feels. - Returns:
- list of auxiliary LookAndFeels ornull
- See Also:
- addAuxiliaryLookAndFeel(javax.swing.LookAndFeel),- removeAuxiliaryLookAndFeel(javax.swing.LookAndFeel),- setLookAndFeel(javax.swing.LookAndFeel),- getInstalledLookAndFeels()
 
 - 
addPropertyChangeListenerpublic static void addPropertyChangeListener(PropertyChangeListener listener) Adds aPropertyChangeListenerto the listener list. The listener is registered for all properties.- Parameters:
- listener- the- PropertyChangeListenerto be added
- See Also:
- PropertyChangeSupport
 
 - 
removePropertyChangeListenerpublic static void removePropertyChangeListener(PropertyChangeListener listener) Removes aPropertyChangeListenerfrom the listener list. This removes aPropertyChangeListenerthat was registered for all properties.- Parameters:
- listener- the- PropertyChangeListenerto be removed
- See Also:
- PropertyChangeSupport
 
 - 
getPropertyChangeListenerspublic static PropertyChangeListener[] getPropertyChangeListeners() Returns an array of all thePropertyChangeListeners added to this UIManager with addPropertyChangeListener().- Returns:
- all of the PropertyChangeListeners added or an empty array if no listeners have been added
- Since:
- 1.4
 
 
- 
 
-