summaryrefslogtreecommitdiffstats
path: root/dozentenmodul
diff options
context:
space:
mode:
authorSteffen Ritter2022-07-01 15:57:41 +0200
committerSteffen Ritter2022-07-01 15:57:41 +0200
commit4ce74c2e80ea8b890a2dd6e0f179108a4cc8fe89 (patch)
tree977fd9b8acce5099723a4fe61261dd7292693552 /dozentenmodul
parent[server] Log role on login (diff)
downloadtutor-module-4ce74c2e80ea8b890a2dd6e0f179108a4cc8fe89.tar.gz
tutor-module-4ce74c2e80ea8b890a2dd6e0f179108a4cc8fe89.tar.xz
tutor-module-4ce74c2e80ea8b890a2dd6e0f179108a4cc8fe89.zip
[client] Fix antialiasing failure
We need to set antialising before and after initiazing flatlaf. If you want to delete doubled code, check first if font looks good with different themes.
Diffstat (limited to 'dozentenmodul')
-rwxr-xr-xdozentenmodul/src/main/java/org/openslx/dozmod/App.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
index 36ea083b..9ef3f7b9 100755
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
@@ -163,6 +163,11 @@ public class App {
}
}
+ // Setup swing style
+ // need to set Antialiasing two times. Before AND after FlatLaf init ~.~
+ System.setProperty("awt.useSystemAAFontSettings", "on");
+ System.setProperty("swing.aatext", "true");
+
// Install FlatLaf look and feel
FlatLightLaf.installLafInfo();
FlatDarkLaf.installLafInfo();
@@ -193,6 +198,7 @@ public class App {
}
// Setup swing style
+ // need to set Antialiasing two times. Before AND after FlatLaf init ~.~
System.setProperty("awt.useSystemAAFontSettings", "on");
System.setProperty("swing.aatext", "true");