< prev index next >

test/jdk/javax/swing/JTabbedPane/6416920/bug6416920.java

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

*** 25,52 **** * @test * @bug 6416920 * @summary Ensures that selected tab is painted properly in the scroll tab layout * under WindowsLookAndFeel in Windows' "Windows XP" theme. * @author Mikhail Lapshin ! * @library ../../../../lib/testlibrary ! * @build jdk.testlibrary.OSInfo * @run main bug6416920 */ import javax.swing.plaf.basic.BasicTabbedPaneUI; import javax.swing.JTabbedPane; import javax.swing.SwingConstants; import java.awt.Rectangle; import java.awt.Insets; ! import jdk.testlibrary.OSInfo; public class bug6416920 extends BasicTabbedPaneUI { public AccessibleTabbedPaneLayout layout = new AccessibleTabbedPaneLayout(); public static void main(String[] args) { ! if(OSInfo.getOSType() != OSInfo.OSType.WINDOWS){ return; } bug6416920 test = new bug6416920(); test.layout.padSelectedTab(SwingConstants.TOP, 0); --- 25,53 ---- * @test * @bug 6416920 * @summary Ensures that selected tab is painted properly in the scroll tab layout * under WindowsLookAndFeel in Windows' "Windows XP" theme. * @author Mikhail Lapshin ! * @library /test/lib ! * @build jdk.test.lib.Platform * @run main bug6416920 */ import javax.swing.plaf.basic.BasicTabbedPaneUI; import javax.swing.JTabbedPane; import javax.swing.SwingConstants; import java.awt.Rectangle; import java.awt.Insets; ! ! import jdk.test.lib.Platform; public class bug6416920 extends BasicTabbedPaneUI { public AccessibleTabbedPaneLayout layout = new AccessibleTabbedPaneLayout(); public static void main(String[] args) { ! if (!Platform.isWindows()) { return; } bug6416920 test = new bug6416920(); test.layout.padSelectedTab(SwingConstants.TOP, 0);
< prev index next >