> hi,
> we are trying to write a java program, in which will enter a key to
[quoted text clipped - 3 lines]
>
> thanks for your help..
If you are using a text-mode program, the answer is no - because
keyboard is wrapped as System.in, which is an inputstream. You can
"read" from an input stream, but cannot write to it.
If you are using a Swing/AWT based program, you can create your own
KeyEvent and then post it - the listeners will receive the event as if
it came from the keyboard. You can get the system even queue by using
getToolkit().getSystemEventQueue() and then use the postEvent() method
passing in the programatically created KeyEvent.
Its not as easy as in VB though :)
-cheers,
Manish