mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-16 02:43:20 +00:00
8282147: [TESTBUG] waitForIdle after creating frame in JSpinnerMouseAndKeyPressTest.java
Reviewed-by: aivanov
This commit is contained in:
parent
51f4420711
commit
bdae1d87c1
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user