RFR: 8282147: [TESTBUG] waitForIdle after creating frame in JSpinnerMouseAndKeyPressTest.java

Alexey Ivanov aivanov at openjdk.java.net
Mon Feb 21 09:51:50 UTC 2022


On Sun, 20 Feb 2022 08:01:28 GMT, Manukumar V S <mvs at openjdk.org> wrote:

> Call Robot.waitForIdle() after createUI and before getting the location of the JSpinner component in the test: javax/swing/JSpinner/4515999/JSpinnerMouseAndKeyPressTest.java.
> 
> This is needed to ensure all the events for creating and displaying the frame are processed before interacting with the components on the screen.

Marked as reviewed by aivanov (Reviewer).

test/jdk/javax/swing/JSpinner/4515999/JSpinnerMouseAndKeyPressTest.java line 86:

> 84:         frame.add(panel);
> 85:         frame.setUndecorated(true);
> 86:         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

Is it even possible to close an undecorated window?

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

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



More information about the client-libs-dev mailing list