Java examples for java.awt:Robot
Robot del Text
//package com.java2s; import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; public class Main { public static void delText() { try {/* ww w . j av a 2 s . c o m*/ Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_BACK_SPACE); robot.keyRelease(KeyEvent.VK_BACK_SPACE); } catch (AWTException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }