< prev index next >

test/java/awt/SplashScreen/FullscreenAfterSplash/FullScreenAfterSplash.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 20,52 **** * or visit www.oracle.com if you need additional information or have any * questions. */ import jdk.testlibrary.OSInfo; ! import java.awt.*; import java.awt.Robot; import java.awt.event.InputEvent; import java.lang.InterruptedException; import java.lang.System; import java.lang.Thread; import java.lang.reflect.Method; import java.lang.reflect.Proxy; ! import javax.swing.*; /* * @test ! * @bug 8024185 * @summary Native Mac OS X full screen does not work after showing the splash * @requires (os.family == "mac") * @library ../ * @library ../../../../lib/testlibrary * @modules java.desktop/sun.awt * java.desktop/com.apple.eawt * @build jdk.testlibrary.OSInfo * @build GenerateTestImage * @run main GenerateTestImage * @author Petr Pchelko area=awt.event * @run main/othervm -splash:test.png FullScreenAfterSplash */ public class FullScreenAfterSplash { private static JFrame frame; --- 20,56 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ import jdk.testlibrary.OSInfo; ! import java.awt.Point; import java.awt.Robot; + import java.awt.Window; import java.awt.event.InputEvent; import java.lang.InterruptedException; import java.lang.System; import java.lang.Thread; import java.lang.reflect.Method; import java.lang.reflect.Proxy; ! import javax.swing.JFrame; ! import javax.swing.SwingUtilities; ! import javax.swing.WindowConstants; /* * @test ! * @bug 8024185 8140329 * @summary Native Mac OS X full screen does not work after showing the splash * @requires (os.family == "mac") * @library ../ * @library ../../../../lib/testlibrary * @modules java.desktop/sun.awt * java.desktop/com.apple.eawt * @build jdk.testlibrary.OSInfo * @build GenerateTestImage * @run main GenerateTestImage * @author Petr Pchelko area=awt.event + * @compile FullScreenAfterSplash.java * @run main/othervm -splash:test.png FullScreenAfterSplash */ public class FullScreenAfterSplash { private static JFrame frame;
< prev index next >