< prev index next >
src/java.desktop/windows/classes/sun/awt/windows/WRobotPeer.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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. Oracle designates this
@@ -23,30 +23,29 @@
* questions.
*/
package sun.awt.windows;
+import sun.awt.Win32GraphicsDevice;
+
import java.awt.*;
import java.awt.peer.RobotPeer;
final class WRobotPeer extends WObjectPeer implements RobotPeer
{
- WRobotPeer() {
- create();
- }
WRobotPeer(GraphicsDevice screen) {
- create();
+ create(((Win32GraphicsDevice)screen).getScreen());
}
private synchronized native void _dispose();
@Override
protected void disposeImpl() {
_dispose();
}
- public native void create();
+ public native void create(int screen);
public native void mouseMoveImpl(int x, int y);
@Override
public void mouseMove(int x, int y) {
mouseMoveImpl(x, y);
}
< prev index next >