public final class LookAndFeelUtil extends Object
The GNU General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static Class<LookAndFeel> |
currentLAF
The current PLAF
|
private static Class<?> |
defaultLAF
The default PLAF (and the default value)
|
private static String |
font
The font to be used for the application
|
Modifier | Constructor and Description |
---|---|
private |
LookAndFeelUtil()
Prevent instantiation
|
Modifier and Type | Method and Description |
---|---|
private static void |
customizeBDLookandFeel() |
static String |
getFont()
Accessor for the stylesheet we are transforming using
|
static Class<?> |
getLookAndFeel()
The Options customization
|
static void |
initialize()
Establish the system look and feel
|
static void |
setFont(String font)
Accessor for the stylesheet we are transforming using
|
static void |
setLookAndFeel(Class<LookAndFeel> newLaFClass)
Set the look and feel to a new class.
|
static void |
setUIFont(FontUIResource f)
Set the default font for all Swing components.
|
static FontUIResource |
toFontUIResource()
Converts the font spec to something useful.
|
private static Class<LookAndFeel> currentLAF
private static Class<?> defaultLAF
private static String font
public static void initialize()
public static Class<?> getLookAndFeel()
public static void setLookAndFeel(Class<LookAndFeel> newLaFClass) throws InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException
public static String getFont()
public static FontUIResource toFontUIResource()
public static void setFont(String font)
public static void setUIFont(FontUIResource f)
setUIFont(new FontUIResource("Serif", Font.ITALIC, 12));
UIManager.put("Label.font", new Font("Serif", Font.ITALIC, 12));
f
- the font to useprivate static void customizeBDLookandFeel()