On Fri, 19 Sep 2025 06:19:30 GMT, Prasanta Sadhukhan <[email protected]> 
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

Reply via email to