From 40e893e8639c4d8ae620ef4d57ed20fabcc69960 Mon Sep 17 00:00:00 2001 From: rupashka Date: Thu, 14 Apr 2011 12:37:11 +0400 Subject: [PATCH] 7032911: javax/swing/JLabel/7004134/bug7004134.java test fails against jdk7 Reviewed-by: malenkov --- test/javax/swing/JLabel/7004134/bug7004134.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/javax/swing/JLabel/7004134/bug7004134.java b/test/javax/swing/JLabel/7004134/bug7004134.java index 09be54bee..cbbce201d 100644 --- a/test/javax/swing/JLabel/7004134/bug7004134.java +++ b/test/javax/swing/JLabel/7004134/bug7004134.java @@ -52,7 +52,13 @@ public class bug7004134 { 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 @@ public class bug7004134 { 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); -- GitLab