1 /*
2 * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
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 import java.awt.*;
24 import java.awt.event.MouseAdapter;
25 import java.awt.event.MouseEvent;
26
27 /*
28 * @test
29 * @summary Check if components present in a window set with opacity less than 1.0
30 * triggers events correctly
31 *
32 * Test Description: Check if TRANSLUCENT Translucency type is supported on the
33 * current platform. Proceed if supported. Show a window which contains some
34 * components and set with opacity less than 1.0. Another Window having a
35 * canvas component drawn with an image can be used as the background for the
36 * test window. Click on the components present in the window and check if
37 * events trigger correctly.
38 * Expected Result: The components should trigger events correctly
39 *
40 * @author mrkam
41 * @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
42 * @library ../../../../lib/testlibrary
43 * @build Common ExtendedRobot
44 * @run main TranslucentWindowClick
45 */
46 public class TranslucentWindowClick extends Common {
47
48 private Component south;
|
1 /*
2 * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
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 import java.awt.*;
24 import java.awt.event.MouseAdapter;
25 import java.awt.event.MouseEvent;
26
27 /*
28 * @test
29 * @key headful
30 * @summary Check if components present in a window set with opacity less than 1.0
31 * triggers events correctly
32 *
33 * Test Description: Check if TRANSLUCENT Translucency type is supported on the
34 * current platform. Proceed if supported. Show a window which contains some
35 * components and set with opacity less than 1.0. Another Window having a
36 * canvas component drawn with an image can be used as the background for the
37 * test window. Click on the components present in the window and check if
38 * events trigger correctly.
39 * Expected Result: The components should trigger events correctly
40 *
41 * @author mrkam
42 * @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
43 * @library ../../../../lib/testlibrary
44 * @build Common ExtendedRobot
45 * @run main TranslucentWindowClick
46 */
47 public class TranslucentWindowClick extends Common {
48
49 private Component south;
|