RFR: 8064922: [macos] Test javax/swing/JTabbedPane/4624207/bug4624207.java fails [v2]
Damon Nguyen
dnguyen at openjdk.org
Tue Sep 23 17:50:46 UTC 2025
On Fri, 19 Sep 2025 06:19:30 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> test/jdk/javax/swing/JTabbedPane/4624207/bug4624207.java line 96:
>>
>>> 94: robot.keyPress(KeyEvent.VK_ALT);
>>> 95: robot.keyPress(KeyEvent.VK_B);
>>> 96: robot.keyRelease(KeyEvent.VK_ALT);
>>
>> keyRelease should be other way around...ie VK_B first and then VK_ALT
>
> Also you may want to check another test `EditableFocusTest` which also sets mnemonic "B" on a JButton and it passes in macOS..One difference is it uses setMnemonic(char) instead of setMnemonic(int)
Thanks, I reversed the order of the release.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27371#discussion_r2373045401
More information about the client-libs-dev
mailing list