changeset 5867:b7a065df19ad

8009881: TEST_BUG: javax/swing/JTree/8004298/bug8004298.java should be modified Reviewed-by: serb, alexsch, coffeys
author kshefov
date Fri, 12 Apr 2013 15:52:46 +0400
parents faaa56f45475
children cface35aaf24
files test/javax/swing/JTree/8004298/bug8004298.java
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/swing/JTree/8004298/bug8004298.java	Thu Apr 11 10:58:17 2013 +0800
+++ b/test/javax/swing/JTree/8004298/bug8004298.java	Fri Apr 12 15:52:46 2013 +0400
@@ -48,8 +48,13 @@
         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 @@
             return super.getPathBounds(tree, path);
         }
     }
-}
\ No newline at end of file
+}