From 4653886b6aa27a0cfe92cc938a9d0f847d447cbf Mon Sep 17 00:00:00 2001 From: kshefov Date: Tue, 19 Mar 2013 17:51:52 +0400 Subject: [PATCH] 8009881: TEST_BUG: javax/swing/JTree/8004298/bug8004298.java should be modified Reviewed-by: serb, alexsch --- test/javax/swing/JTree/8004298/bug8004298.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/javax/swing/JTree/8004298/bug8004298.java b/test/javax/swing/JTree/8004298/bug8004298.java index 3d0ca5c00..bafdee7d3 100644 --- a/test/javax/swing/JTree/8004298/bug8004298.java +++ b/test/javax/swing/JTree/8004298/bug8004298.java @@ -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); } } -} \ No newline at end of file +} -- GitLab