git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9df9ea3
)
JAL-3253-applet JAL-3424 headless fix for Windows
author
hansonr
<hansonr@STO24954W.ad.stolaf.edu>
Tue, 27 Aug 2019 22:18:24 +0000
(17:18 -0500)
committer
hansonr
<hansonr@STO24954W.ad.stolaf.edu>
Tue, 27 Aug 2019 22:18:24 +0000
(17:18 -0500)
src/jalview/bin/Jalview.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/Jalview.java
b/src/jalview/bin/Jalview.java
index
fae2b75
..
2efa0fb
100755
(executable)
--- 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");