JDK-8218469 : JSlider display issue with slider for GTKLookAndFeel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u202,9,10,11,12,13
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-02-05
  • Updated: 2019-09-26
  • Resolved: 2019-02-15
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.

To download the current JDK release, click here.
JDK 11 JDK 8 Other
11.0.4Fixed 8u221Fixed openjdk8u222Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8219012 :  
JDK-8219071 :  
JDK-8219072 :  
Description
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
Comments
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.
18-03-2019

The release note for this bug also covers JDK-8218479
14-02-2019

The release note for this bug also covers JDK-8218473
14-02-2019

The release note for this bug also covers JDK-8218472
14-02-2019

The release note for this bug also covers JDK-8218470
14-02-2019

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.
12-02-2019

This is P1 TCK-RED issue for JDK 12 GA release. The fix is in progress.
08-02-2019