< 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,52 **** /* @test * @bug 4449413 * @summary Tests that checkbox and radiobuttons' check marks are visible when background is black * @author Ilya Boyandin ! * @library ../../../../lib/testlibrary * @modules java.desktop/sun.awt ! * @build jdk.testlibrary.OSInfo * @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; public class bug4449413 extends JApplet { @Override public void init() { try { ! if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) { UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } final MetalTheme oceanTheme = (MetalTheme) sun.awt.AppContext.getAppContext().get("currentMetalTheme"); --- 23,53 ---- /* @test * @bug 4449413 * @summary Tests that checkbox and radiobuttons' check marks are visible when background is black * @author Ilya Boyandin ! * @library /test/lib * @modules java.desktop/sun.awt ! * @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.test.lib.Platform; public class bug4449413 extends JApplet { @Override public void init() { try { ! if (Platform.isOSX()) { UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } final MetalTheme oceanTheme = (MetalTheme) sun.awt.AppContext.getAppContext().get("currentMetalTheme");
< prev index next >