views:

282

answers:

2

I am writing an application to remap some of the keyboard keys. I want to add a button so that if the user clicks on it, the input source will change to the next input in the OS. I am using it to input source arabic and english. What should I use, and is it possible to do that in java?

+1  A: 

Have a look at the Java Method Input Framework.

willcodejavaforfood
+1  A: 

I believe InputContext.selectInputMethod() is what you're looking for. This article also describes how to set the input method via system menus or hotkey.

Michael Borgwardt