< prev index next >
test/jdk/java/awt/Focus/FrameJumpingToMouse/FrameJumpingToMouse.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2008, 2016, 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) 2008, 2018, 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.
*** 24,53 ****
/*
* @test
* @key headful
* @bug 4752312
* @summary Tests that after moving non-focusable window it ungrabs mouse pointer
- * @author Denis Mikhalkin: area=awt.focus
* @library ../../regtesthelpers
* @build Util
* @run main FrameJumpingToMouse
*/
- import java.applet.Applet;
- import java.awt.BorderLayout;
- import java.awt.Dialog;
- import java.awt.Frame;
import java.awt.Point;
import java.awt.Robot;
- import java.awt.TextArea;
- import java.awt.Toolkit;
import java.awt.event.InputEvent;
import javax.swing.JFrame;
import test.java.awt.regtesthelpers.Util;
! public class FrameJumpingToMouse extends Applet
! {
JFrame frame = new JFrame("Test jumping frame");
Robot robot = Util.createRobot();
public static void main(String[] args) {
FrameJumpingToMouse test = new FrameJumpingToMouse();
--- 24,46 ----
/*
* @test
* @key headful
* @bug 4752312
* @summary Tests that after moving non-focusable window it ungrabs mouse pointer
* @library ../../regtesthelpers
* @build Util
* @run main FrameJumpingToMouse
*/
import java.awt.Point;
import java.awt.Robot;
import java.awt.event.InputEvent;
import javax.swing.JFrame;
import test.java.awt.regtesthelpers.Util;
! public class FrameJumpingToMouse {
!
JFrame frame = new JFrame("Test jumping frame");
Robot robot = Util.createRobot();
public static void main(String[] args) {
FrameJumpingToMouse test = new FrameJumpingToMouse();
< prev index next >