From 9562177ab06d0568c057406e317de05c9cbbdc87 Mon Sep 17 00:00:00 2001 From: Alexander Herzog Date: Sun, 26 May 2024 00:01:12 +0200 Subject: [PATCH] Update dependencies --- Simulator/pom.xml | 7 ++++--- Simulator/src/main/java/ui/tools/FlatLaFHelper.java | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Simulator/pom.xml b/Simulator/pom.xml index c6d3df0..b2d72ce 100644 --- a/Simulator/pom.xml +++ b/Simulator/pom.xml @@ -6,8 +6,9 @@ jar - 1.8 - 1.8 + 11 + 11 + 11 WINDOWS-1252 @@ -44,7 +45,7 @@ com.formdev flatlaf - 3.0 + 3.4.1 diff --git a/Simulator/src/main/java/ui/tools/FlatLaFHelper.java b/Simulator/src/main/java/ui/tools/FlatLaFHelper.java index 2aad2b2..8ff8272 100644 --- a/Simulator/src/main/java/ui/tools/FlatLaFHelper.java +++ b/Simulator/src/main/java/ui/tools/FlatLaFHelper.java @@ -78,6 +78,7 @@ private static String getName(Class laf) { */ public static void init() { lafs.forEach(laf->{try {UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo(getName(laf),laf.getName()));} catch (SecurityException | IllegalArgumentException e) {}}); + UIManager.getDefaults().clear(); /* Genau an dieser Stelle für *racle/OpenJDKWin-Builds nötig, damit FlatLaF funktioniert */ } /**