RFR: 8281738: Create a regression test for checking the 'Space' key activation of focused Button [v4]

Alexey Ivanov aivanov at openjdk.java.net
Fri Feb 18 21:56:56 UTC 2022


On Fri, 18 Feb 2022 08:02:31 GMT, Manukumar V S <mvs at openjdk.org> wrote:

>> This test verifies in all platforms and in all 'Look and Feels' that pressing the 'Space' key generates ActionEvent on focused Button or not.
>
> Manukumar V S has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixed review comments: Added @bug label, catch UnsupportedLookAndFeelException and ignore LnF, added robot.waitForIdle() after window creation

test/jdk/javax/swing/JButton/SpaceKeyActivatesButton.java line 134:

> 132:         panel.add(focusedButton);
> 133: 
> 134:         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Suggestion:

        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

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

PR: https://git.openjdk.java.net/jdk/pull/7460



More information about the client-libs-dev mailing list