On Wed, 16 Mar 2022 05:53:50 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Write a regression test for >> [JDK-4820080](https://bugs.openjdk.java.net/browse/JDK-4820080) : RFE: >> Cannot Change the JSplitPane Divider Color while dragging >> >> Issue(as per bug description): >> I want to change the color of the JSplitPane divider. I >> opened the code and found that, the color is hard coded to >> darkGray while one is dragging the splitDivider. I have an >> application where the components on SplitPane have black >> background, So when i drag I can not see the split getting >> dragged. Can some one fix this, by externelising the >> SplitDivider color so that it can be changed at run time. >> >> Testing: >> Java 1.4.1 -> Test Failed. >> $ ./j2sdk1.4.1/bin/java JSplitPaneDragColorTest >> Metal uses correct drag color false >> CDE/Motif uses correct drag color false >> Windows uses correct drag color false >> Test Failed. >> >> Java 1.5.0 -> Test Failed. >> $ ./jdk1.5.0/bin/java JSplitPaneDragColorTest >> Metal uses correct drag color true >> Windows uses correct drag color true >> Windows Classic uses correct drag color true >> Test Passed. > > test/jdk/javax/swing/JSplitPane/4820080/JSplitPaneDragColorTest.java line 71: > >> 69: robot.setAutoWaitForIdle(true); >> 70: robot.setAutoDelay(200); >> 71: // Skipping NimbusLookAndFeel & GTKLookAndFeel as both are not >> supported for this feature - JDK-8075914 > > Please split the long lines using 80 chars per line. > Note that JDK-8075914 is closed so it is unclear why this is unsupported by > Nimbus/GTK l&f. I think the closed bug is JDK-8075608, but JDK-8075914 is still open. But anyway JDK-8075608 was closed as 'Won't Fix', so I think the problem remains. ------------- PR: https://git.openjdk.java.net/jdk/pull/7803