JAL-3253-applet JAL-3424 headless fix for Windows
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 27 Aug 2019 22:18:24 +0000 (17:18 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 27 Aug 2019 22:18:24 +0000 (17:18 -0500)
src/jalview/bin/Jalview.java

index fae2b75..2efa0fb 100755 (executable)
@@ -398,7 +398,13 @@ public class Jalview implements ApplicationSingletonI, JalviewJSApi
 
     try
     {
-      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+      if (Platform.isWin())
+       {
+        UIManager.setLookAndFeel(
+                headless ? "javax.swing.plaf.metal.MetalLookAndFeel"
+                        : UIManager.getSystemLookAndFeelClassName());
+//      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+      }
     } catch (Exception ex)
     {
       System.err.println("Unexpected Look and Feel Exception");