Thursday 15 August 2013

Java: Getting installed text input languages on Windows -


I was trying to figure out what input languages ​​have been installed on Windows from the Java application. You control panel-> Region & Language-> Change Keyboard (Buttons) - & gt; General- & gt; Manually install this installed services (the panel below) manually. Background

In the background application, I am using Locale.us for the following calls -

  component component = getAWTComponent (); Component.getInputContext (). Select InputMethod (Locale.US)   

But some host US keyboard languages ​​are not installed (Say a system in the UK) I wanted to verify that the language is not available and no error or something To throw.

In addition, is it possible to install such services from Java (can be remotely accessed ..)?

There is something wrong with the default keyboard layout that should be done with great care. If you do this, then you should choose the option of selecting users, rather than compelling them to a certain layout, rather than wanting them.

Imagine your response if I wrote an app and tried to force you to use German keyboard.

That said, the API will return to a valid keyboard layout, when Locale.US is not available. Code which is hidden

By using the image, you should be able to repeat the part of the code that some place is supported or not.

No comments:

Post a Comment