A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other JSE/JEE APIs
How to get labels updated when language changed
Joined: Oct 13, 2011
Oct 31, 2011 07:56:42
I am using the following code to create a resource bundle for specified language and country:
Locale loc = new Locale(language, country); resource = ResourceBundle.getBundle(resourceFile, loc); theLabel.setText(resource.getString(key));
The problem is, when user changes the language, the label's text does not get changed automatically, I have reset the text manually after changing language.
Does anybody have workaround for this?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: How to get labels updated when language changed
Internationalization: variable language and validation
Country to Currency Mapping
Override request headers
struts internationalization problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013