Author: gregor herrmann Author: Philip Rinn Description: Changes to be able to compile JabRef with free java compilers. --- a/src/java/net/sf/jabref/JabRef.java +++ b/src/java/net/sf/jabref/JabRef.java @@ -29,7 +29,6 @@ import com.jgoodies.looks.FontSet; import com.jgoodies.looks.FontSets; import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; -import com.jgoodies.looks.windows.WindowsLookAndFeel; import gnu.dtools.ritopt.BooleanOption; import gnu.dtools.ritopt.Options; import gnu.dtools.ritopt.StringOption; @@ -606,27 +605,6 @@ //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); - WindowsLookAndFeel.setFontPolicy(fixedPolicy); - } - - //WindowsLookAndFeel plLnf = (WindowsLookAndFeel) lnf; - } if (lnf != null) { try {