diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bdc960b8..c795c407a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,9 @@ FlatLaf Change Log listener on that formatted text field. (issue #698) - PopupMenu: Make sure that popup menu does not overlap any operating system task bar. (issue #701) +- FileChooser: Use system icons on Windows with Java 17.0.3 (and later) 32-bit. + Only Java 7 - 17.0.2 32-bit do not use system icons because of a bug in Java + 32-bit that crashes the application. (PR #709) - FileChooser: Fixed crash on Windows with Java 17 to 17.0.2 32-bit. Java 17 64-bit is not affected. (regression since FlatLaf 2.3; PR #522, see also issue #403) diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatFileChooserUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatFileChooserUI.java index 0450c1c5d..70f57442f 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatFileChooserUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatFileChooserUI.java @@ -349,10 +349,10 @@ public void clearIconCache() { private static boolean doNotUseSystemIcons() { // Java 17 32bit craches on Windows when using system icons - // fixed in Java 18+ (see https://bugs.openjdk.java.net/browse/JDK-8277299) + // fixed in Java 18+, fix backported in Java 17.0.3+ (see https://bugs.openjdk.java.net/browse/JDK-8277299) return SystemInfo.isWindows && SystemInfo.isX86 && - (SystemInfo.isJava_17_orLater && !SystemInfo.isJava_18_orLater); + (SystemInfo.isJava_17_orLater && SystemInfo.javaVersion < SystemInfo.toVersion( 17, 0, 3, 0 )); } //---- class FlatFileView -------------------------------------------------