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.AWTException;
25 import java.awt.Frame;
26 import java.awt.GraphicsConfiguration;
27 import java.awt.GraphicsDevice;
28 import java.awt.GraphicsEnvironment;
29 import java.awt.Robot;
30 import java.awt.Window;
31 import java.awt.event.InputEvent;
32
33 import static java.awt.GraphicsEnvironment.*;
34
35 /**
36 * @test
37 * @bug 6778087
38 */
39 public final class MouseWheelAbsXY {
40
41 private static boolean done;
42 private static int wheelX;
43 private static int wheelY;
44 private static int mouseX;
45 private static int mouseY;
46
47 public static void main(final String[] args) throws AWTException {
48 GraphicsEnvironment ge = getLocalGraphicsEnvironment();
49 GraphicsDevice[] sds = ge.getScreenDevices();
50 for (GraphicsDevice gd : sds) {
51 test(gd.getDefaultConfiguration());
52 }
53 }
54
55 private static void test(GraphicsConfiguration gc) throws AWTException {
56 final Window frame = new Frame(gc);
|
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.AWTException;
25 import java.awt.Frame;
26 import java.awt.GraphicsConfiguration;
27 import java.awt.GraphicsDevice;
28 import java.awt.GraphicsEnvironment;
29 import java.awt.Robot;
30 import java.awt.Window;
31 import java.awt.event.InputEvent;
32
33 import static java.awt.GraphicsEnvironment.*;
34
35 /**
36 * @test
37 * @key headful
38 * @bug 6778087
39 */
40 public final class MouseWheelAbsXY {
41
42 private static boolean done;
43 private static int wheelX;
44 private static int wheelY;
45 private static int mouseX;
46 private static int mouseY;
47
48 public static void main(final String[] args) throws AWTException {
49 GraphicsEnvironment ge = getLocalGraphicsEnvironment();
50 GraphicsDevice[] sds = ge.getScreenDevices();
51 for (GraphicsDevice gd : sds) {
52 test(gd.getDefaultConfiguration());
53 }
54 }
55
56 private static void test(GraphicsConfiguration gc) throws AWTException {
57 final Window frame = new Frame(gc);
|