src/share/classes/java/awt/Robot.java

Print this page

        

*** 165,175 **** /* determine if the security policy allows Robot's to be created */ private void checkRobotAllowed() { SecurityManager security = System.getSecurityManager(); if (security != null) { ! security.checkPermission(SecurityConstants.CREATE_ROBOT_PERMISSION); } } /* check if the given device is a screen device */ private void checkIsScreenDevice(GraphicsDevice device) { --- 165,175 ---- /* determine if the security policy allows Robot's to be created */ private void checkRobotAllowed() { SecurityManager security = System.getSecurityManager(); if (security != null) { ! security.checkPermission(SecurityConstants.AWT.CREATE_ROBOT_PERMISSION); } } /* check if the given device is a screen device */ private void checkIsScreenDevice(GraphicsDevice device) {
*** 464,474 **** private static void checkScreenCaptureAllowed() { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkPermission( ! SecurityConstants.READ_DISPLAY_PIXELS_PERMISSION); } } /* * Called after an event is generated --- 464,474 ---- private static void checkScreenCaptureAllowed() { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkPermission( ! SecurityConstants.AWT.READ_DISPLAY_PIXELS_PERMISSION); } } /* * Called after an event is generated