public final class JaxoLooknFeel
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
applyLocale(java.util.Locale value)
Apply the given locale.
|
static boolean |
applyLookAndFeel(java.lang.String lookAndFeelClassName)
Set LookAndFeel to given value value,
and update existing windows and registered components.
|
static java.util.Locale |
getLocale()
Current locale.
|
static javax.swing.UIManager.LookAndFeelInfo |
info(java.lang.String className)
Return a LookAndFeelInfo object for a given class name.
|
static void |
registerComponent(javax.swing.JComponent c)
Register a component whose look and feel/locale is to be updated
automatically.
|
static void |
setLookAndFeel(javax.swing.LookAndFeel value)
Set the LookAndFeel, temporarily adjusting the locale to
fix resource bundle lookup (default locale problems), and to
make JColorChooser work.
|
static void |
setLookAndFeel(java.lang.String value)
Safe wrapper around
UIManager.setLookAndFeel(String):
Set the LookAndFeel, temporarily adjusting the locale to
fix resource bundle lookup (default locale problems), and to
make JColorChooser work. |
static void |
unregisterComponent(javax.swing.JComponent c)
Unregister a component whose look and feel/locale is to be updated
automatically.
|
static void |
updateLookAndFeel()
Update LookAndFeel of all windows and all registered components.
|
public static java.util.Locale getLocale()
public static void applyLocale(java.util.Locale value)
value - The locale to apply.public static boolean applyLookAndFeel(java.lang.String lookAndFeelClassName)
lookAndFeelClassName - The class name of the LAF to set.public static javax.swing.UIManager.LookAndFeelInfo info(java.lang.String className)
className - the name of the class.public static void setLookAndFeel(java.lang.String value)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
javax.swing.UnsupportedLookAndFeelException
UIManager.setLookAndFeel(String):
Set the LookAndFeel, temporarily adjusting the locale to
fix resource bundle lookup (default locale problems), and to
make JColorChooser work.value - The LAF to set.java.lang.ClassNotFoundException - ClassNotFoundExceptionjava.lang.InstantiationException - InstantiationExceptionjava.lang.IllegalAccessException - IllegalAccessExceptionjavax.swing.UnsupportedLookAndFeelException - UnsupportedLookAndFeelExceptionUIManager.setLookAndFeel(String)public static void setLookAndFeel(javax.swing.LookAndFeel value)
throws javax.swing.UnsupportedLookAndFeelException
value - The LAF to set.javax.swing.UnsupportedLookAndFeelException - UnsupportedLookAndFeelExceptionUIManager.setLookAndFeel(LookAndFeel)public static void updateLookAndFeel()
public static void registerComponent(javax.swing.JComponent c)
c - The component to register.public static void unregisterComponent(javax.swing.JComponent c)
c - The component to unregister.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.