Don't set the native Look and Feel on Linux

This commit is contained in:
Fabian Becker 2014-12-08 16:47:16 +01:00
parent f01258fff1
commit 164ccd8a9d

View File

@ -248,6 +248,11 @@ public class Main extends JFrame implements OptimizationStateListener {
}
private void initLookAndFeel() {
// The native L&F on Linux looks horrible - don't set it.
if (System.getProperty("os.name").equals("Linux")) {
return;
}
// Properties for Mac OS X support.
if ((System.getProperty("mrj.version") != null)
|| (System.getProperty("os.name").toLowerCase().contains("mac"))) {