Package weka.gui
Class LookAndFeel
- java.lang.Object
-
- weka.gui.LookAndFeel
-
public class LookAndFeel extends java.lang.ObjectA little helper class for setting the Look and Feel of the user interface. Was necessary, since Java 1.5 sometimes crashed the WEKA GUI (e.g. under Linux/Gnome). Running this class from the commandline will print all available Look and Feel themes.- Version:
- $Revision: 7059 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_FILEThe name of the properties file
-
Constructor Summary
Constructors Constructor Description LookAndFeel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]getInstalledLookAndFeels()returns an array with the classnames of all the installed LnFsstatic java.lang.StringgetSystemLookAndFeel()returns the system LnF classnamestatic voidmain(java.lang.String[] args)prints all the available LnFs to stdoutstatic booleansetLookAndFeel()sets the look and feel to the one in the props-file or if not set the default one of the systemstatic booleansetLookAndFeel(java.lang.String classname)sets the look and feel to the specified class
-
-
-
Method Detail
-
setLookAndFeel
public static boolean setLookAndFeel(java.lang.String classname)
sets the look and feel to the specified class- Parameters:
classname- the look and feel to use- Returns:
- whether setting was successful
-
setLookAndFeel
public 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- Returns:
- whether setting was successful
-
getSystemLookAndFeel
public static java.lang.String getSystemLookAndFeel()
returns the system LnF classname- Returns:
- the name of the System LnF class
-
getInstalledLookAndFeels
public static java.lang.String[] getInstalledLookAndFeels()
returns an array with the classnames of all the installed LnFs- Returns:
- the installed LnFs
-
main
public static void main(java.lang.String[] args)
prints all the available LnFs to stdout- Parameters:
args- the commandline options
-
-