RFR: 8370511: test/jdk/javax/swing/JSlider/bug4382876.java does not release previously pressed keys [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 24 09:41:05 UTC 2025


On Fri, 24 Oct 2025 09:29:46 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> test/jdk/javax/swing/JSlider/bug4382876.java line 64:
>> 
>>> 62:                 slider.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
>>> 63:                 slider.putClientProperty("JSlider.isFilled", Boolean.TRUE);
>>> 64:                 f.add(slider, BorderLayout.CENTER);
>> 
>> also shouldn't we add the component i.e, slider first to frame and then make it visible? here it is made visible and then slider is added..
>
> It doesn't matter as we wait long enough, it should work both ways.

it doesnt matter till it start failing in some platform in some circumstances :-)

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27959#discussion_r2459542638


More information about the client-libs-dev mailing list