Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding a language setting or locale of the keyboard

 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I chnaged the language settings from english layout to german from the regional settings. the keyboard behave as german. but in my java application i have to get the keyboard layoout whether it is english or german. i tried by using Locale.getdefault it always display the english US. if the regional setting is changed also locale.getdefault display the english as.

How to get the current keyboard layout or language setting using java.
 
R Babu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please try the code below:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic