On Tue, 20 May 2025 00:08:45 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> test/jdk/javax/swing/JSplitPane/TestSplitPaneResetDividerLoc.java line 71:
>> 
>>> 69:                 point = openDialogButton.getLocationOnScreen();
>>> 70:             });
>>> 71:             robot.mouseMove(point.x, point.y);
>> 
>> When I run the test on my macOS laptop, it fails because the click occured 
>> on the window border instead of the button. It would be good to slightly 
>> shift the click position to ensure it reliably hits the button across 
>> platforms.
>> 
>> btw it is better to use EventQueue.invokeAndWait instead of 
>> SwingUtilities.invokeAndWait. The latter was added early on, while the 
>> former consolidates all event-dispatching utilities in one class.
>
> maybe we can loop over installed L&F?

click position fixed......L&F iterated.....

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25294#discussion_r2096924822

Reply via email to