static void automate_type(int keyCode) { assertAutomationAllowed(); awtRobot().keyPress(keyCode); awtRobot().keyRelease(keyCode); }