Skip to content

Commit cfddb16

Browse files
committed
8282147: [TESTBUG] waitForIdle after creating frame in JSpinnerMouseAndKeyPressTest.java
Backport-of: bdae1d87c16423878e4dcc8a0e87806d77bb5256
1 parent 602018d commit cfddb16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/jdk/javax/swing/JSpinner/4515999/JSpinnerMouseAndKeyPressTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ private static void createUI() {
8383
panel.add(spinner);
8484
frame.add(panel);
8585
frame.setUndecorated(true);
86+
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
8687
frame.pack();
8788
frame.setAlwaysOnTop(true);
8889
frame.setLocationRelativeTo(null);
@@ -103,6 +104,7 @@ public static void runTest() throws Exception {
103104
setLookAndFeel(laf);
104105
createUI();
105106
});
107+
robot.waitForIdle();
106108

107109
SwingUtilities.invokeAndWait(() -> {
108110
Point loc = spinner.getLocationOnScreen();

0 commit comments

Comments
 (0)