java - Change language at runtime (using internationalization "tool") -
I see some topics with the same question like me, but I have old and none of the answers are good for me is not. / P>
Then I have this application in Java that uses swing. I have implemented internationalization to design UI and now I need something that can be the language of application (locale) Can change and refresh the components of the UI. As such, the button changes the "change language" to the hit and app language.
Is it possible only by not restarting and using only resource bundles?
Cheers
[edit]
I tried to do this:
Locale aLocale = new locale Builder (). Set language ("PT"). SetRegion ("PT"). Build (); Locale.setDefault (aLocale); This.dispose (); New window ("fish"). Set isabel (true);
Is there anything wrong with this "solution"?
Comments
Post a Comment