提交 40e893e8 编写于 作者: R rupashka

7032911: javax/swing/JLabel/7004134/bug7004134.java test fails against jdk7

Reviewed-by: malenkov
上级 7186bcf5
...@@ -52,7 +52,13 @@ public class bug7004134 { ...@@ -52,7 +52,13 @@ public class bug7004134 {
frame.add(label); frame.add(label);
frame.pack(); frame.pack();
frame.setVisible(true); frame.setVisible(true);
}
});
((SunToolkit) SunToolkit.getDefaultToolkit()).realSync();
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
ToolTipManager toolTipManager = ToolTipManager.sharedInstance(); ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
toolTipManager.setInitialDelay(0); toolTipManager.setInitialDelay(0);
...@@ -83,7 +89,13 @@ public class bug7004134 { ...@@ -83,7 +89,13 @@ public class bug7004134 {
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack(); frame.pack();
frame.setVisible(true); frame.setVisible(true);
}
});
((SunToolkit) SunToolkit.getDefaultToolkit()).realSync();
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
ToolTipManager toolTipManager = ToolTipManager.sharedInstance(); ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
toolTipManager.setInitialDelay(0); toolTipManager.setInitialDelay(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册