提交 4653886b 编写于 作者: K kshefov

8009881: TEST_BUG: javax/swing/JTree/8004298/bug8004298.java should be modified

Reviewed-by: serb, alexsch
上级 5393dadc
......@@ -48,8 +48,13 @@ public class bug8004298 {
Robot robot = new Robot();
robot.setAutoDelay(50);
SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
try {
UIManager.setLookAndFeel(new WindowsLookAndFeel());
} catch (javax.swing.UnsupportedLookAndFeelException ulafe) {
System.out.println(ulafe.getMessage());
System.out.println("The test is considered PASSED");
return;
}
SwingUtilities.invokeAndWait(new Runnable() {
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册