diff options
author | Simon Rettberg | 2021-08-12 10:23:50 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-08-12 10:23:50 +0200 |
commit | 48a88905e1f3c434af24c63220e5ad1448d1e894 (patch) | |
tree | 368c64ec090289dc674de553c06ce2e832f87fc1 /dozentenmodul | |
parent | [client] Fix FlatLaf on Windows JRE-8 (diff) | |
download | tutor-module-48a88905e1f3c434af24c63220e5ad1448d1e894.tar.gz tutor-module-48a88905e1f3c434af24c63220e5ad1448d1e894.tar.xz tutor-module-48a88905e1f3c434af24c63220e5ad1448d1e894.zip |
[client] Set anti aliasing properties after LAF initialization
FlatLaf seems to reset anti-aliasing settings hen it's being loaded; set
the according properties after initializing the swing look-and-feel.
Diffstat (limited to 'dozentenmodul')
-rwxr-xr-x | dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index a6f4b580..b64ad0b8 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -186,10 +186,6 @@ public class App { // Install FlatLaf look and feel FlatLightLaf.installLafInfo(); FlatDarkLaf.installLafInfo(); - - // Setup swing style - System.setProperty("awt.useSystemAAFontSettings", "on"); - System.setProperty("swing.aatext", "true"); try { if (System.getProperty("swing.defaultlaf") != null) { @@ -216,6 +212,10 @@ public class App { } } + // Setup swing style + System.setProperty("awt.useSystemAAFontSettings", "on"); + System.setProperty("swing.aatext", "true"); + // Adjust font size adjustFontSize(Config.getFontScaling()); |