swing - Automatic internationalization in Java -
i have issue automatic internationalization in java, using netbeans. in actionlistener chaging locale this:
string s = (string)langbox.getselecteditem(); switch(s){ case "Čeština": bp_evolution.language = "cs"; bp_evolution.currentlocale = new locale(bp_evolution.language); break; case "english": bp_evolution.language = "en"; bp_evolution.currentlocale = new locale(bp_evolution.language); break; }
actually, issue is, don't know function should phone call switching language in application. using java se , swing. said, resourcebundle has been created automatically.
my issue has been resolved swingworkers. when set function of switching languages, started work.
you can read here -> java doc
problem main thread stucked running gui , not able else.
java swing internationalization
No comments:
Post a Comment