We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51f4420 commit bdae1d8Copy full SHA for bdae1d8
test/jdk/javax/swing/JSpinner/4515999/JSpinnerMouseAndKeyPressTest.java
@@ -83,6 +83,7 @@ private static void createUI() {
83
panel.add(spinner);
84
frame.add(panel);
85
frame.setUndecorated(true);
86
+ frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
87
frame.pack();
88
frame.setAlwaysOnTop(true);
89
frame.setLocationRelativeTo(null);
@@ -103,6 +104,7 @@ public static void runTest() throws Exception {
103
104
setLookAndFeel(laf);
105
createUI();
106
});
107
+ robot.waitForIdle();
108
109
SwingUtilities.invokeAndWait(() -> {
110
Point loc = spinner.getLocationOnScreen();
0 commit comments