RFR: 8356594: JSplitPane loses divider location when reopened via JOptionPane.createDialog() [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue May 20 05:01:54 UTC 2025


On Tue, 20 May 2025 00:08:45 GMT, Sergey Bylokhov <serb at 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


More information about the client-libs-dev mailing list