Hello
I set tow radio buttons in the same group, and prepare the Localization, I
tried to refresh the app after the events but did not work, how to make it?
This is the code ::
Hashtable<String, String> arabic, english;
protected void initVars(Resources res) {
arabic = res.getL10N("L", "ar");
english = res.getL10N("L", "en");
}
protected void onMain_ArabicLanguageAction(Component c, ActionEvent
event){
UIManager.getInstance().setBundle(arabic);
Form form = Display.getInstance().getCurrent();
form.revalidate();
}
protected void onMain_EnglishLanguageAction(Component c, ActionEvent
event){
UIManager.getInstance().setBundle(english);
Form form = Display.getInstance().getCurrent();
form.revalidate();
}
Thanks
My regards ,,
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/fc5c912b-66bf-41df-b53c-0396c0df1a58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.