提交 c11f9da1 编写于 作者: R rupashka

7160653: test/javax/swing/plaf/synth/7158712/bug7158712.java failed on Ubuntu

Reviewed-by: alexp
上级 864fbaff
......@@ -28,6 +28,8 @@
@author Pavel Porvatov
*/
import sun.awt.SunToolkit;
import javax.swing.*;
import javax.swing.plaf.basic.BasicComboPopup;
import javax.swing.plaf.synth.SynthLookAndFeel;
......@@ -65,7 +67,7 @@ public class bug7158712 {
UIManager.setLookAndFeel(laf);
EventQueue.invokeLater(new Runnable() {
EventQueue.invokeAndWait(new Runnable() {
public void run() {
comboBox = new JComboBox<>(
new String[]{"Very Looooooooooooooooooooong Text Item 1", "Item 2"});
......@@ -80,6 +82,8 @@ public class bug7158712 {
}
});
((SunToolkit) Toolkit.getDefaultToolkit()).realSync();
Point comboBoxLocation = Util.invokeOnEDT(new Callable<Point>() {
@Override
public Point call() throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册