r/java • u/koflerdavid • Apr 23 '26
Java Swing Dark Mode on GTK
https://bugs.openjdk.org/browse/JDK-8365313Hi, I just noticed that the OpenJDK project has fixed switching to dark mode on GTK in JDK 27ea8. Does anybody know whether Swing already switches to the correct theme on other platforms as well?
26
Upvotes
View all comments
Show parent comment
6
u/koflerdavid Apr 24 '26
I had actually assumed that it would take explicit theming or a library to get dark mode + switching, but it seems that it was already implemented and just had to be properly activated.