File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -788,7 +788,6 @@ javax/swing/JRadioButton/8033699/bug8033699.java 8233555 macosx-all
788
788
javax/swing/JPopupMenu/4634626/bug4634626.java 8017175 macosx-all
789
789
javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java 8233637 macosx-all
790
790
javax/swing/JMenuItem/6249972/bug6249972.java 8233640 macosx-all
791
- javax/swing/JMenuItem/4171437/bug4171437.java 8233641 macosx-all
792
791
793
792
sanity/client/SwingSet/src/ToolTipDemoTest.java 8225012 windows-all,macosx-all
794
793
sanity/client/SwingSet/src/ScrollPaneDemoTest.java 8225013 linux-all
Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ public class bug4171437 {
44
44
45
45
public static void main (String [] args ) throws Exception {
46
46
try {
47
+ Robot robot = new Robot ();
48
+ robot .setAutoDelay (100 );
47
49
SwingUtilities .invokeAndWait (new Runnable () {
48
50
public void run () {
49
51
createAndShowGUI ();
50
52
}
51
53
});
52
54
53
- Robot robot = new Robot ();
54
- robot .setAutoDelay (50 );
55
55
robot .waitForIdle ();
56
+ robot .delay (1000 );
56
57
57
58
Util .hitMnemonics (robot , KeyEvent .VK_F );
58
59
Util .hitKeys (robot , KeyEvent .VK_C );
59
60
60
61
robot .waitForIdle ();
61
- Thread .sleep (1000 );
62
62
63
63
if (!closeActivated || customActivated ) {
64
64
throw new RuntimeException ("Didn't pass the muster" );
@@ -109,6 +109,7 @@ public void menuCanceled(MenuEvent e) {}
109
109
frame .setSize (300 , 300 );
110
110
frame .setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE );
111
111
frame .pack ();
112
+ frame .setLocationRelativeTo (null );
112
113
frame .setVisible (true );
113
114
}
114
115
}
You can’t perform that action at this time.
0 commit comments