20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.awt.Rectangle;
25 import java.awt.Toolkit;
26 import java.awt.image.BufferedImage;
27
28 import javax.swing.JFrame;
29 import javax.swing.SwingUtilities;
30
31 import jdk.test.lib.Platform;
32
33 /**
34 * @test
35 * @key headful
36 * @bug 7124513
37 * @summary We should support NSTexturedBackgroundWindowMask style on OSX.
38 * @author Sergey Bylokhov
39 * @library /test/lib
40 * @build ExtendedRobot jdk.test.lib.Platform
41 * @run main NSTexturedJFrame
42 */
43
44 public final class NSTexturedJFrame {
45
46 private static final String BRUSH = "apple.awt.brushMetalLook";
47 private static final String STYLE = "Window.style";
48 private static final BufferedImage[] images = new BufferedImage[3];
49 private static Rectangle bounds;
50 private static volatile int step;
51 private static JFrame frame;
52 private static ExtendedRobot robot;
53
54 public static void main(final String[] args) throws Exception {
55 if (!Platform.isOSX()) {
56 System.out.println("This test is for OSX, considered passed.");
57 return;
58 }
59 robot = new ExtendedRobot();
|
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.awt.Rectangle;
25 import java.awt.Toolkit;
26 import java.awt.image.BufferedImage;
27
28 import javax.swing.JFrame;
29 import javax.swing.SwingUtilities;
30
31 import jdk.test.lib.Platform;
32
33 /**
34 * @test
35 * @key headful
36 * @bug 7124513
37 * @summary We should support NSTexturedBackgroundWindowMask style on OSX.
38 * @author Sergey Bylokhov
39 * @library /test/lib
40 * /test/jdk/lib/testlibrary/
41 * @build ExtendedRobot jdk.test.lib.Platform
42 * @run main NSTexturedJFrame
43 */
44
45 public final class NSTexturedJFrame {
46
47 private static final String BRUSH = "apple.awt.brushMetalLook";
48 private static final String STYLE = "Window.style";
49 private static final BufferedImage[] images = new BufferedImage[3];
50 private static Rectangle bounds;
51 private static volatile int step;
52 private static JFrame frame;
53 private static ExtendedRobot robot;
54
55 public static void main(final String[] args) throws Exception {
56 if (!Platform.isOSX()) {
57 System.out.println("This test is for OSX, considered passed.");
58 return;
59 }
60 robot = new ExtendedRobot();
|