< prev index next >

test/jdk/javax/swing/JInternalFrame/4251301/bug4251301.java

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

*** 22,48 **** */ /* @test @bug 4251301 @summary Keybinding for show/hide the system menu. @author Andrey Pikalev ! @library ../../../../lib/testlibrary ! @build jdk.testlibrary.OSInfo @run main/manual bug4251301 */ import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.*; - import jdk.testlibrary.OSInfo; public class bug4251301 { static Test test = new Test(); public static void main(String[] args) throws Exception { ! if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) { System.out.println("This test is not applicable for MacOS. Passed."); return; } UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); SwingUtilities.invokeAndWait(new Runnable() { --- 22,48 ---- */ /* @test @bug 4251301 @summary Keybinding for show/hide the system menu. @author Andrey Pikalev ! @library /test/lib ! @build jdk.test.lib.Platform @run main/manual bug4251301 */ import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.*; + import jdk.test.lib.Platform; public class bug4251301 { static Test test = new Test(); public static void main(String[] args) throws Exception { ! if (Platform.isOSX()) { System.out.println("This test is not applicable for MacOS. Passed."); return; } UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); SwingUtilities.invokeAndWait(new Runnable() {
< prev index next >