On Sat, 29 Jan 2022 13:54:28 GMT, Manukumar V S <[email protected]> wrote:

> This tests the behaviour of the method JRootPane.setDefaultButton() in 
> different platforms with different LAFs.
> As per the spec 
> https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JRootPane.html#setDefaultButton(javax.swing.JButton),
>  "The default button is the button which will be activated when a UI-defined 
> activation event (typically the Enter key) occurs in the root pane regardless 
> of whether or not the button has keyboard focus (unless there is another 
> component within the root pane which consumes the activation event, such as a 
> JTextPane). ".
> 
> This test is run multiple times in different platforms and got 100% success 
> in mac and windows, linux.

This pull request has now been integrated.

Changeset: 51b53a82
Author:    Manukumar V S <[email protected]>
Committer: Alexey Ivanov <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/51b53a821bb3cfb962f80a637f5fb8cde988975a
Stats:     111 lines in 1 file changed: 111 ins; 0 del; 0 mod

8280913: Create a regression test for JRootPane.setDefaultButton() method

Reviewed-by: aivanov

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

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

Reply via email to