Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regional and Language Configuration  RSS feed

 
Sergio Alonso
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! my question is that i want to know the regional and language configuration of my underlying OS.. specifically over windows xp -> control panel -> regional and language configuration, it's obvious that i can change that manually, but in my swing project i need to know what language it's configurated, not to change the value, only to know it so i can make decisions programatically..

thanks for the help!
 
Campbell Ritchie
Sheriff
Posts: 55333
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the getProperties method in the System class? That might provide what you need. It works nicely on Linux but I haven't tried it on Windows yet. You can also use another System class method to get a single property once you know its name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!