org.homeunix.thecave.moss.util
Class LookAndFeelUtil
java.lang.Object
org.homeunix.thecave.moss.util.LookAndFeelUtil
public class LookAndFeelUtil
- extends java.lang.Object
Simplifies the setting of Java Look and Feels. Call the method without
arguments to set a sane default, based on platform and available classes.
Call the method with a class name argument, and it will attempt to set
the defined LnF, or revert to default if there are problems.
- Author:
- wyatt
|
Field Summary |
static java.lang.String |
QUAQUA
|
static java.lang.String |
WINLAF
|
|
Method Summary |
static void |
setLookAndFeel()
Tries to set a good look and feel based on the operating system and available
LnF classes. |
static void |
setLookAndFeel(java.lang.String className)
Tries to set the look and feel based on the provided class name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUAQUA
public static final java.lang.String QUAQUA
- See Also:
- Constant Field Values
WINLAF
public static final java.lang.String WINLAF
- See Also:
- Constant Field Values
LookAndFeelUtil
public LookAndFeelUtil()
setLookAndFeel
public static void setLookAndFeel()
- Tries to set a good look and feel based on the operating system and available
LnF classes. Will try to use Quaqua for OS X, and WinLAF for Windows;
if these fail, it will revert to the System look and feel or (finally)
the Cross Platform look and feel.
setLookAndFeel
public static void setLookAndFeel(java.lang.String className)
- Tries to set the look and feel based on the provided class name. If this
fails (or if the className is null), it will fall back to the same LnF
set in setLookAndFeel().
- Parameters:
className -