< 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,17 +23,18 @@
  * 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 {
 
-    final static public int MOUSE_LEFT_BTN   = 1;
-    final static public int MOUSE_RIGHT_BTN  = 2;
-    final static public int MOUSE_MIDDLE_BTN = 4;
+    @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 >