< prev index next >
modules/javafx.graphics/src/main/java/com/sun/glass/ui/Robot.java
Print this page
rev 10044 : 8166471: use @Native annotation in graphics, windows
Reviewed-by: kcr
*** 23,39 ****
* questions.
*/
package com.sun.glass.ui;
import static com.sun.javafx.FXPermissions.CREATE_ROBOT_PERMISSION;
import java.nio.IntBuffer;
public abstract class Robot {
! final static public int MOUSE_LEFT_BTN = 1;
! final static public int MOUSE_RIGHT_BTN = 2;
! final static public int MOUSE_MIDDLE_BTN = 4;
protected abstract void _create();
protected Robot() {
// Ensure proper permission
final SecurityManager sm = System.getSecurityManager();
--- 23,40 ----
* questions.
*/
package com.sun.glass.ui;
import static com.sun.javafx.FXPermissions.CREATE_ROBOT_PERMISSION;
+ import java.lang.annotation.Native;
import java.nio.IntBuffer;
public abstract class Robot {
! @Native final static public int MOUSE_LEFT_BTN = 1;
! @Native final static public int MOUSE_RIGHT_BTN = 2;
! @Native final static public int MOUSE_MIDDLE_BTN = 4;
protected abstract void _create();
protected Robot() {
// Ensure proper permission
final SecurityManager sm = System.getSecurityManager();
< prev index next >