On Tue, 10 Jun 2025 21:14:38 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

>> 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.

I have been looking at it and fiddling with the standalone (non-PassFailJFrame) 
test to see if I can re-create the behavior without `PassFailJFrame`. I 
suspected AWT components being the issue but I can't see why.

I tried using EventQueue and SwingUtilities `invokeAndWait()` method to see if 
either made a difference, but to no success. I tried different layouts for the 
frame but I got the same result. I'll keep looking but I may also append 
`windows` to the ProblemList temporarily if I cannot find the source in a 
reasonable amount of time.

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

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

Reply via email to