JDK-8225423 : GTK L&F: JSplitPane: There is no divider shown
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,9,10,11,12,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-05-30
  • Updated: 2020-01-23
  • Resolved: 2019-07-12
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 13 JDK 14 JDK 8 Other
11.0.5-oracleFixed 13 b30Fixed 14Fixed 8u231Fixed openjdk8u232Fixed
Description
Testsuite name: Swing manual
Test name(s): Swing_JSplitPane/Manual/bug4430294 
Product(s) tested:JDK 8u221b06 (64bit)/tonga-4.0.2-rc2 
OS/architecture:oel7.6-uek-x64
option: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Djdk.gtk.version=3

Actual behavior:
1.There is no the divider shown.Refer to bug4430294-with-option.png
2.No such issue without option.Refer to bug4430294-no-option.png 
3.No such issue on oel6.4-uek-x86/JDK8u221b04(32bit) with the same option

Affect test: 
Swing_JScrollPane/Manual/ScrollDemo
Comments
8u Fix Request: I would like to backport this patch to 8u, as it is on Oracle's 8u backport list. The original patch applies cleanly.
12-08-2019

11u Fix Request: I would like to backport this patch to 11u, as it is on Oracle's 11u backport list. The original patch applies cleanly.
05-08-2019

URL: https://hg.openjdk.java.net/jdk/jdk13/rev/7b11ce080798 User: psadhukhan Date: 2019-07-12 03:57:33 +0000
12-07-2019

Fix is on review: http://mail.openjdk.java.net/pipermail/swing-dev/2019-July/009696.html
08-07-2019

Incomplete before closing this as not an issue
04-07-2019

> As the JSplitPane component is not visible I have increased the priority to P2. I am not sure why you did that since the bug had just been updated to say this looks correct per native rendering. So can we close this as not an issue ?
04-07-2019

I have ran a native gtk applcation (gtksplitpane.c) on ubuntu18.04 with gtk2 and gtk3 and I observe that the native gtk application is also not drawing the divider in gtk3 unlike gtk2. Attached screenshot (divider-screenshot.png) shows the difference (upper left is gtk2 native application, upper right is gtk3 native application). In gtk2, we have 3 horizontal lines in the divider whereas in gtk3, we do not have. I have also shown SwingSet2 demo, for reference, with both gtk2 and gtk3, where, to me, it looks to be same as is with native app.
04-07-2019

I think this is not an issue the divider is being shown in gtk3 as well. The problem is that the color of both JScrollPanes added is same as the color of divider, so the divider. so the divider is not visible. The problem is that the background color of JScrollPanes is wrong. If we change the background colors of ScrollPanes, then we can clearly see the divider. I am attaching a JSplitPaneTest.java for reference. 6.png is output of attached program and 7.png is s output from SQE testcase when the color is set on JScrollpanes
14-06-2019

I am able to reproduce this issue on OEL7.5 with jdk8_221_b06 with gtk3. It works fine with gtk2.
11-06-2019

[~tmeng] [~smandalika] Can you please confirm that this behaviour is only specific to gtk3 and works fine with gtk2? The no_option image does not use gtk at all. So we are not sure whether this bug is specific to gtk3 or not.
10-06-2019

[~tmeng][~smandalika] does is affect 13? 11?
06-06-2019