public class LookAndFeel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_FILE
The name of the properties file
|
Constructor and Description |
---|
LookAndFeel() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getAvailableLookAndFeelClasses()
Get a list of fully qualified class names of available look and feels
|
static java.lang.String[] |
getInstalledLookAndFeels()
returns an array with the classnames of all the installed LnFs
|
static java.lang.String |
getSystemLookAndFeel()
returns the system LnF classname
|
static void |
main(java.lang.String[] args)
prints all the available LnFs to stdout
|
static boolean |
setLookAndFeel()
sets the look and feel to the one in the props-file or if not set the
default one of the system
|
static boolean |
setLookAndFeel(java.lang.String classname)
sets the look and feel to the specified class
|
static void |
setLookAndFeel(java.lang.String appID,
java.lang.String lookAndFeelKey,
java.lang.String defaultLookAndFeel)
Set the look and feel from loaded settings
|
public static java.lang.String PROPERTY_FILE
public static java.util.List<java.lang.String> getAvailableLookAndFeelClasses()
public static boolean setLookAndFeel(java.lang.String classname)
classname
- the look and feel to usepublic static void setLookAndFeel(java.lang.String appID, java.lang.String lookAndFeelKey, java.lang.String defaultLookAndFeel) throws java.io.IOException
appID
- the ID of the application to load settings forlookAndFeelKey
- the key to look up the look and feel in the settingsjava.io.IOException
- if a problem occurs when loading settingspublic static boolean setLookAndFeel()
public static java.lang.String getSystemLookAndFeel()
public static java.lang.String[] getInstalledLookAndFeels()
public static void main(java.lang.String[] args)
args
- the commandline options