17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.awt.Point;
25 import java.awt.Window;
26 import java.awt.Robot;
27 import java.awt.event.InputEvent;
28 import java.lang.InterruptedException;
29 import java.lang.System;
30 import java.lang.Thread;
31 import java.lang.reflect.Method;
32 import java.lang.reflect.Proxy;
33 import javax.swing.JFrame;
34 import javax.swing.SwingUtilities;
35 import javax.swing.WindowConstants;
36
37 /*
38 * @test
39 * @bug 8024185
40 * @summary Native Mac OS X full screen does not work after showing the splash
41 * @requires (os.family == "mac")
42 * @library ../
43 * @library ../../../../lib/testlibrary
44 * @modules java.desktop/sun.awt
45 * java.desktop/com.apple.eawt
46 * @build GenerateTestImage
47 * @run main GenerateTestImage
48 * @author Petr Pchelko area=awt.event
49 * @run main/othervm -splash:test.png FullScreenAfterSplash
50 */
51 public class FullScreenAfterSplash {
52
53 private static JFrame frame;
54
55 private static volatile boolean windowEnteringFullScreen = false;
56 private static volatile boolean windowEnteredFullScreen = false;
57
58 public static void main(String[] args) throws Exception {
59
60 try {
61 //Move the mouse out, because it could interfere with the test.
62 Robot r = new Robot();
63 r.setAutoDelay(50);
64 r.mouseMove(0, 0);
65 sleep();
66
67 SwingUtilities.invokeAndWait(FullScreenAfterSplash::createAndShowGUI);
68 sleep();
69
70 Point fullScreenButtonPos = frame.getLocation();
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.awt.Point;
25 import java.awt.Window;
26 import java.awt.Robot;
27 import java.awt.event.InputEvent;
28 import java.lang.InterruptedException;
29 import java.lang.System;
30 import java.lang.Thread;
31 import java.lang.reflect.Method;
32 import java.lang.reflect.Proxy;
33 import javax.swing.JFrame;
34 import javax.swing.SwingUtilities;
35 import javax.swing.WindowConstants;
36
37 /**
38 * @test
39 * @key headful
40 * @bug 8024185
41 * @summary Native Mac OS X full screen does not work after showing the splash
42 * @requires (os.family == "mac")
43 * @library ../
44 * @library ../../../../lib/testlibrary
45 * @modules java.desktop/sun.awt
46 * java.desktop/com.apple.eawt
47 * @build GenerateTestImage
48 * @run main GenerateTestImage
49 * @author Petr Pchelko area=awt.event
50 * @run main/othervm -splash:test.png FullScreenAfterSplash
51 */
52
53 public class FullScreenAfterSplash {
54
55 private static JFrame frame;
56
57 private static volatile boolean windowEnteringFullScreen = false;
58 private static volatile boolean windowEnteredFullScreen = false;
59
60 public static void main(String[] args) throws Exception {
61
62 try {
63 //Move the mouse out, because it could interfere with the test.
64 Robot r = new Robot();
65 r.setAutoDelay(50);
66 r.mouseMove(0, 0);
67 sleep();
68
69 SwingUtilities.invokeAndWait(FullScreenAfterSplash::createAndShowGUI);
70 sleep();
71
72 Point fullScreenButtonPos = frame.getLocation();
|