< prev index next >

test/jdk/javax/swing/JOptionPane/8024926/bug8024926.java

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

@@ -25,19 +25,20 @@
 import java.awt.EventQueue;
 import java.awt.Frame;
 import java.awt.TextArea;
 import javax.swing.JApplet;
 import javax.swing.JOptionPane;
-import jdk.testlibrary.OSInfo;
+
+import jdk.test.lib.Platform;
 
 /**
  * @test
  * @bug 8024926 8040279
  * @summary [macosx] AquaIcon HiDPI support
  * @author Alexander Scherbatiy
- * @library ../../../../lib/testlibrary
- * @build jdk.testlibrary.OSInfo
+ * @library /test/lib
+ * @build jdk.test.lib.Platform
  * @run applet/manual=yesno bug8024926.html
  */
 public class bug8024926 extends JApplet {
     //Declare things used in the test, like buttons and labels here
 

@@ -46,11 +47,11 @@
         // the environment -- set the layout manager, add buttons,
         // etc.
         this.setLayout(new BorderLayout());
 
 
-        if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
+        if (Platform.isOSX()) {
             String[] instructions = {
                 "Verify that high resolution system icons are used"
                 + " in JOptionPane on HiDPI displays.",
                 "1) Run the test on Retina display or enable the Quartz Debug"
                 + " and select the screen resolution with (HiDPI) label",
< prev index next >