JDK-8218469 : JSlider display issue with slider for GTKLookAndFeel
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Running any Swing app having a JSlider component with GTK L&F (-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel) leads to component not being renreder - please see the attached screenshots for default L&F and GTK
Fix Request (11u, 8u)
This issue solves GTK 3+ compatibility problems. Upstream patch contains fixes for 4 issues (JDK-8218469, JDK-8218470, JDK-8218472, JDK-8203627). It applies cleanly to 11u (and I see 11.0.4-oracle), and to 8u with reshuffling (and I see 8u221/222). Original tests (JSlider, JProgressBar, JScrollBar, FileChooserDemo) work fine after the patch, and looks wrong before the patch. 8u requires -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Djdk.gtk.version=3 to reproduce. The risk is low.
The release note for this bug also covers JDK-8218479
The release note for this bug also covers JDK-8218473
The release note for this bug also covers JDK-8218472
The release note for this bug also covers JDK-8218470
From gtk 3.20, gtk has changed the way themes and styles work for many widgets. As per https://developer.gnome.org/gtk3/stable/ch32s10.html, gtk no longer depends on style classes and type names for style matching, but uses element names. Due to which, jdk is not able to render some widgets properly including JSlider. I have tested this by running the SwingSet2 and attached reproducer test.
This is P1 TCK-RED issue for JDK 12 GA release. The fix is in progress.