< prev index next >
test/jdk/javax/swing/JCheckBox/4449413/bug4449413.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
@@ -23,30 +23,31 @@
/* @test
* @bug 4449413
* @summary Tests that checkbox and radiobuttons' check marks are visible when background is black
* @author Ilya Boyandin
- * @library ../../../../lib/testlibrary
+ * @library /test/lib
* @modules java.desktop/sun.awt
- * @build jdk.testlibrary.OSInfo
+ * @build jdk.test.lib.Platform
* @run applet/manual=yesno bug4449413.html
*/
import javax.swing.*;
import javax.swing.plaf.metal.*;
import java.awt.event.*;
import java.awt.*;
-import jdk.testlibrary.OSInfo;
+
+import jdk.test.lib.Platform;
public class bug4449413 extends JApplet {
@Override
public void init() {
try {
- if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) {
+ if (Platform.isOSX()) {
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
}
final MetalTheme oceanTheme = (MetalTheme) sun.awt.AppContext.getAppContext().get("currentMetalTheme");
< prev index next >