# HG changeset patch # User rupashka # Date 1302770231 -14400 # Node ID 27a2a803f6f8ef3b6dc8b932d0ac5bd8dd519c6e # Parent 75c0420badef13e0a04fa8f24025caa404d88979 7032911: javax/swing/JLabel/7004134/bug7004134.java test fails against jdk7 Reviewed-by: malenkov diff -r 75c0420badef -r 27a2a803f6f8 jdk/test/javax/swing/JLabel/7004134/bug7004134.java --- a/jdk/test/javax/swing/JLabel/7004134/bug7004134.java Thu Apr 14 15:59:47 2011 +0900 +++ b/jdk/test/javax/swing/JLabel/7004134/bug7004134.java Thu Apr 14 12:37:11 2011 +0400 @@ -52,7 +52,13 @@ frame.add(label); frame.pack(); frame.setVisible(true); + } + }); + ((SunToolkit) SunToolkit.getDefaultToolkit()).realSync(); + + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { ToolTipManager toolTipManager = ToolTipManager.sharedInstance(); toolTipManager.setInitialDelay(0); @@ -83,7 +89,13 @@ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); + } + }); + ((SunToolkit) SunToolkit.getDefaultToolkit()).realSync(); + + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { ToolTipManager toolTipManager = ToolTipManager.sharedInstance(); toolTipManager.setInitialDelay(0);