Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Best Way to Implement Java Onscreen Keyboard Input

843806Nov 14 2007 — edited Nov 14 2007
Hello!

I'm working on an embedded device that will run J2SE, using a touchscreen, but no keyboard. The UI will be in Swing. When the user focuses a text field, I'd like an on-screen keyboard to be displayed.

My question is as to the best way to have Swing text component receive the key events (?) that this keyboard will generate. The options I saw so far are

1. Write an input method provider
2. Use java.awt.Robot

But I think I might be missing some easier way.

Thanks for advice, or pointing me to an existing project.

~Jesse
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2007
Added on Nov 14 2007
2 comments
64 views