Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Simulate/generate the key events in JNI

1027777Jul 25 2013

Hi all,

I am trying to develop application on embedded device that accepts the input from external hardware keypad.

I have written the custom drive to read character pressed and JNI can read the character pressed.

Can I simulate this key event so that if application is having java standard keylistener / keystroke attached can receive the key pressed?

Any way for doing this as I don't want to couple application with only custom keypad.? or manually JNI need to java function using JNI method "CallVoidMethod"?

Can I override native keystroke/key-listener function so that it returns the key pressed by external key?

One more thing is I am not using any graphical window(no UI).

Thanks in advance

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2013
Added on Jul 25 2013
0 comments
1,157 views