Best Way to Implement Java Onscreen Keyboard Input
843806Nov 14 2007 — edited Nov 14 2007Hello!
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