From bd678dba41df83658dcbd93b3ec57c46f0cd14c9 Mon Sep 17 00:00:00 2001 From: hansonr Date: Tue, 27 Aug 2019 17:18:24 -0500 Subject: [PATCH] JAL-3253-applet JAL-3424 headless fix for Windows --- src/jalview/bin/Jalview.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"); -- 1.7.10.2