summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-08-12 10:23:50 +0200
committerSimon Rettberg2021-08-12 10:23:50 +0200
commit48a88905e1f3c434af24c63220e5ad1448d1e894 (patch)
tree368c64ec090289dc674de553c06ce2e832f87fc1
parent[client] Fix FlatLaf on Windows JRE-8 (diff)
downloadtutor-module-48a88905.tar.gz
tutor-module-48a88905.tar.xz
tutor-module-48a88905.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.
-rwxr-xr-xdozentenmodul/src/main/java/org/openslx/dozmod/App.java8
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());