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
24 import test.java.awt.regtesthelpers.Util;
25
26 import javax.swing.*;
27 import java.awt.*;
28 import java.awt.event.MouseEvent;
29 import java.awt.event.MouseMotionAdapter;
30
31 /**
32 * @test
33 * @bug 8012026
34 * @summary Component.getMousePosition() does not work in an applet on MacOS
35 * @author Petr Pchelko
36 * @library ../../regtesthelpers
37 * @build Util
38 * @compile GetMousePositionWithPopup.java
39 * @run main/othervm GetMousePositionWithPopup
40 */
41
42 public class GetMousePositionWithPopup {
43
44 private static Frame frame1;
45 private static Frame frame2;
46
47 public static void main(String[] args) throws Exception {
48 try {
49 Robot r = Util.createRobot();
50 r.mouseMove(0, 0);
51 Util.waitForIdle(null);
52
|
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
24 import test.java.awt.regtesthelpers.Util;
25
26 import javax.swing.*;
27 import java.awt.*;
28 import java.awt.event.MouseEvent;
29 import java.awt.event.MouseMotionAdapter;
30
31 /**
32 * @test
33 * @key headful
34 * @bug 8012026
35 * @summary Component.getMousePosition() does not work in an applet on MacOS
36 * @author Petr Pchelko
37 * @library ../../regtesthelpers
38 * @build Util
39 * @compile GetMousePositionWithPopup.java
40 * @run main/othervm GetMousePositionWithPopup
41 */
42
43 public class GetMousePositionWithPopup {
44
45 private static Frame frame1;
46 private static Frame frame2;
47
48 public static void main(String[] args) throws Exception {
49 try {
50 Robot r = Util.createRobot();
51 r.mouseMove(0, 0);
52 Util.waitForIdle(null);
53
|