From: hansonr Date: Tue, 27 Aug 2019 22:18:24 +0000 (-0500) Subject: JAL-3253-applet JAL-3424 headless fix for Windows X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bd678dba41df83658dcbd93b3ec57c46f0cd14c9;p=jalview.git JAL-3253-applet JAL-3424 headless fix for Windows --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index fae2b75..2efa0fb 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -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");