< prev index next >

test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java

Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke

@@ -25,19 +25,21 @@
    bug 4150029 8006087
    summary BackSpace keyboard button does not lead to parent directory
    author Oleg Mokhovikov
 */
 
+import jdk.test.lib.Platform;
+
 import javax.swing.*;
 import java.io.File;
 import java.io.IOException;
 
 public class bug4150029 extends JApplet {
     private boolean res;
 
     public void init() {
-        if (jdk.testlibrary.OSInfo.getOSType() == jdk.testlibrary.OSInfo.OSType.MACOSX) {
+        if (Platform.isOSX()) {
             try {
                 UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
             } catch (Exception e) {
                 throw new RuntimeException(e);
             }
< prev index next >