8009881: TEST_BUG: javax/swing/JTree/8004298/bug8004298.java should be modified
Reviewed-by: serb, alexsch
This commit is contained in:
parent
285ce3709b
commit
57215b1938
@ -48,8 +48,13 @@ public class bug8004298 {
|
||||
Robot robot = new Robot();
|
||||
robot.setAutoDelay(50);
|
||||
SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
|
||||
UIManager.setLookAndFeel(new WindowsLookAndFeel());
|
||||
|
||||
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
|
||||
@ -113,4 +118,4 @@ public class bug8004298 {
|
||||
return super.getPathBounds(tree, path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user