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

Reviewed-by: aivanov
This commit is contained in:
Manukumar V S 2022-02-21 10:08:50 +00:00 committed by Abdul Kolarkunnu
parent 51f4420711
commit bdae1d87c1

View File

@ -83,6 +83,7 @@ public class JSpinnerMouseAndKeyPressTest {
panel.add(spinner);
frame.add(panel);
frame.setUndecorated(true);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.pack();
frame.setAlwaysOnTop(true);
frame.setLocationRelativeTo(null);
@ -103,6 +104,7 @@ public class JSpinnerMouseAndKeyPressTest {
setLookAndFeel(laf);
createUI();
});
robot.waitForIdle();
SwingUtilities.invokeAndWait(() -> {
Point loc = spinner.getLocationOnScreen();