< prev index next >

test/jdk/java/awt/FileDialog/MacOSGoToFolderCrash.java

Print this page

        

*** 43,53 **** fd.setVisible(true); }); Robot robot = new Robot(); robot.setAutoDelay(400); robot.waitForIdle(); ! // "⌘+Shift+G" – Open "Go To Folder" window robot.keyPress(KeyEvent.VK_META); robot.keyPress(KeyEvent.VK_SHIFT); robot.keyPress(KeyEvent.VK_G); robot.keyRelease(KeyEvent.VK_G); robot.keyRelease(KeyEvent.VK_SHIFT); --- 43,53 ---- fd.setVisible(true); }); Robot robot = new Robot(); robot.setAutoDelay(400); robot.waitForIdle(); ! // "CMD+Shift+G" - Open "Go To Folder" window robot.keyPress(KeyEvent.VK_META); robot.keyPress(KeyEvent.VK_SHIFT); robot.keyPress(KeyEvent.VK_G); robot.keyRelease(KeyEvent.VK_G); robot.keyRelease(KeyEvent.VK_SHIFT);
< prev index next >