>>
The 1.3 Java release includes a Robot class(http://java.sun.com/products/jdk/1.3/docs/api/java/awt/Robot.html) to generate low-level native mouse / keyboard input events at the operating system level.The other alternative is to call postEvent() of the EventQueue class.