|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jaxodraw.util.JaxoLooknFeel
public final class JaxoLooknFeel
Responsible for switching the Look and Feel of JaxoDraw and the Locale of GUI elements (which are closely related).
| Method Summary | |
|---|---|
static void |
applyLocale(Locale value)
Apply the given locale. |
static boolean |
applyLookAndFeel(String lookAndFeelClassName)
Set LookAndFeel to given value value, and update existing windows and registered components. |
static Locale |
getLocale()
Current locale. |
static UIManager.LookAndFeelInfo |
info(String className)
Return a LookAndFeelInfo object for a given class name. |
static void |
registerComponent(JComponent c)
Register a component whose look and feel/locale is to be updated automatically. |
static void |
setLookAndFeel(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(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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Locale getLocale()
public static void applyLocale(Locale value)
value - The locale to apply.public static boolean applyLookAndFeel(String lookAndFeelClassName)
lookAndFeelClassName - The class name of the LAF to set.
public static UIManager.LookAndFeelInfo info(String className)
className - the name of the class.
public static void setLookAndFeel(String value)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
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.
ClassNotFoundException - ClassNotFoundException
InstantiationException - InstantiationException
IllegalAccessException - IllegalAccessException
UnsupportedLookAndFeelException - UnsupportedLookAndFeelExceptionUIManager.setLookAndFeel(String)
public static void setLookAndFeel(LookAndFeel value)
throws UnsupportedLookAndFeelException
value - The LAF to set.
UnsupportedLookAndFeelException - UnsupportedLookAndFeelExceptionUIManager.setLookAndFeel(LookAndFeel)public static void updateLookAndFeel()
public static void registerComponent(JComponent c)
c - The component to register.public static void unregisterComponent(JComponent c)
c - The component to unregister.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||