diff --git a/build.xml b/build.xml
index aeb7ddf2..e98f99fe 100644
--- a/build.xml
+++ b/build.xml
@@ -106,8 +106,12 @@
+
+
+
+
-
+
diff --git a/source/net/sourceforge/filebot/Main.java b/source/net/sourceforge/filebot/Main.java
index aae35214..16520ead 100644
--- a/source/net/sourceforge/filebot/Main.java
+++ b/source/net/sourceforge/filebot/Main.java
@@ -11,6 +11,7 @@ import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
+import javax.swing.UIManager.LookAndFeelInfo;
import net.sourceforge.filebot.ui.MainFrame;
import net.sourceforge.filebot.ui.NotificationLoggingHandler;
@@ -54,7 +55,11 @@ public class Main {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} else {
// use nimubs laf on linux, bsd, ...
- UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
+ for (LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
+ if (laf.getName().equals("Nimbus")) {
+ UIManager.setLookAndFeel(laf.getClassName());
+ }
+ }
}
} catch (Exception e) {
Logger.getLogger(Main.class.getName()).log(Level.WARNING, e.toString(), e);