< prev index next >

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

Print this page

        

*** 130,140 **** private void init(GraphicsDevice screen) throws AWTException { checkRobotAllowed(); Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof ComponentFactory) { ! peer = ((ComponentFactory)toolkit).createRobot(this, screen); } initLegalButtonMask(); } @SuppressWarnings("deprecation") --- 130,140 ---- private void init(GraphicsDevice screen) throws AWTException { checkRobotAllowed(); Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof ComponentFactory) { ! peer = ((ComponentFactory)toolkit).createRobot(screen); } initLegalButtonMask(); } @SuppressWarnings("deprecation")
< prev index next >