com.jgoodies.looks.Options.setDefaultIconSize
(new Dimension(defaultIconSize, defaultIconSize));
if (overrideDefaultFonts) {
FontSet fontSet = FontSets.createDefaultFontSet(
new Font("Tahoma", Font.PLAIN, fontSizes), // control font
new Font("Tahoma", Font.PLAIN, fontSizes), // menu font
new Font("Tahoma", Font.BOLD, fontSizes) // title font
);
FontPolicy fixedPolicy = FontPolicies.createFixedPolicy(fontSet);
Plastic3DLookAndFeel.setFontPolicy(fixedPolicy);
}
//Plastic3DLookAndFeel plLnf = (Plastic3DLookAndFeel) lnf;
}
else if ((lnf != null) && (lnf instanceof WindowsLookAndFeel)) {
// Set a "model" icon size, so menu items are evenly spaced even though
// only some items have icons. We load an arbitrary icon and look at
// its size to determine what size to use:
int defaultIconSize = GUIGlobals.getImage("open").getIconWidth();
com.jgoodies.looks.Options.setDefaultIconSize
(new Dimension(defaultIconSize, defaultIconSize));
if (overrideDefaultFonts) {
FontSet fontSet = FontSets.createDefaultFontSet(
new Font("Tahoma", Font.PLAIN, fontSizes), // control font
new Font("Tahoma", Font.PLAIN, fontSizes), // menu font
new Font("Tahoma", Font.BOLD, fontSizes) // title font
);
FontPolicy fixedPolicy = FontPolicies.createFixedPolicy(fontSet);