File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -786,7 +786,6 @@ javax/swing/JRadioButton/ButtonGroupFocus/ButtonGroupFocusTest.java 8233555 maco
786
786
javax/swing/JRadioButton/8075609/bug8075609.java 8233555 macosx-all
787
787
javax/swing/JRadioButton/8033699/bug8033699.java 8233555 macosx-all
788
788
javax/swing/JPopupMenu/4634626/bug4634626.java 8017175 macosx-all
789
- javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java 8233637 macosx-all
790
789
javax/swing/JMenuItem/6249972/bug6249972.java 8233640 macosx-all
791
790
792
791
sanity/client/SwingSet/src/ToolTipDemoTest.java 8225012 windows-all,macosx-all
Original file line number Diff line number Diff line change @@ -63,13 +63,15 @@ public static void main(String[] args) throws Exception {
63
63
}
64
64
65
65
try {
66
+ Robot robot = new Robot ();
67
+ robot .setAutoDelay (100 );
66
68
67
69
System .setProperty ("apple.laf.useScreenMenuBar" , "true" );
68
70
SwingUtilities .invokeAndWait (
69
71
ActionListenerCalledTwiceTest ::createAndShowGUI );
70
72
71
- Robot robot = new Robot ();
72
- robot .setAutoDelay ( 100 );
73
+ robot . waitForIdle ();
74
+ robot .delay ( 1000 );
73
75
74
76
testForTwice (robot , "" );
75
77
@@ -99,6 +101,7 @@ private static void createAndShowGUI() {
99
101
frame .setJMenuBar (bar );
100
102
frame .setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE );
101
103
frame .pack ();
104
+ frame .setLocationRelativeTo (null );
102
105
frame .setVisible (true );
103
106
}
104
107
You can’t perform that action at this time.
0 commit comments