On Tue, 10 Jun 2025 19:56:13 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:

>> It seems like there's a bug with this test when using it in a 
>> `PassFailJFrame`. When I move the `createUI` logic into a standalone java 
>> class's main method and add `setVisible(true)`, the test works as expected 
>> for all OS's except macOS.
>> 
>> In this `PassFailJFrame` it looks like it "works" correctly for 1 second, 
>> and then the cursor updates anyway afterwards. I'm going to try to look into 
>> why this is, but is this what you are seeing too @honkar-jdk ?
>
> I have attached the standalone test to the issue. I tried altering how 
> `ListDragCursor.java` creates the UI but it seems that no matter what I do, 
> the cursor still updates after 1 second. I'm looking into what 
> `PassFailJFrame` does differently at the moment.

I guess it's not the first time that we've encountered such an issue where 
using `PassFailJFrame` changes the behaviour of the test. Was it @TejeshR13's 
test?

I'm confused because `PassFailJFrame` does nothing more than provides a 
standard UI. It uses Swing components to display UI. Could this affect AWT 
components?

We have to look into what may cause the differences in behaviour.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25705#discussion_r2138779127

Reply via email to