jdk/test/com/sun/java/swing/plaf/gtk/Test6635110.java
changeset 5948 bd26e23a33e0
parent 5506 202f599c92aa
child 7668 d4a77089c587
--- a/jdk/test/com/sun/java/swing/plaf/gtk/Test6635110.java	Tue Jun 22 12:06:33 2010 +0400
+++ b/jdk/test/com/sun/java/swing/plaf/gtk/Test6635110.java	Tue Jun 22 14:36:46 2010 +0400
@@ -28,7 +28,6 @@
    @run main Test6635110
 */
 
-import com.sun.java.swing.plaf.gtk.GTKLookAndFeel;
 import javax.swing.*;
 import java.awt.*;
 import java.awt.image.BufferedImage;
@@ -59,7 +58,12 @@
     }
 
     public static void main(String[] args) throws Exception {
-        UIManager.setLookAndFeel(new GTKLookAndFeel());
+        try {
+            UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
+        } catch (Exception e) {
+            System.out.println("GTKLookAndFeel cannot be set, skipping this test");
+            return;
+        }
         SwingUtilities.invokeAndWait(new Test6635110());
     }
 }