The reload form it refresh the form and it change the language.
the problem now is select the radio button.. this the last code but it does
not work ..
@Override
public void reloadForm() {
super.reloadForm();
if(findArabicLanguage() != null && UIManager.getInstance().getBundle
() == arabic) {
//findArabicLanguage().setSelected(true);
RadioButton ar = findArabicLanguage();
ar.setSelected(true);
}
if(findEnglishLanguage() != null && UIManager.getInstance().
getBundle() == english) {
//findEnglishLanguage().setSelected(true);
RadioButton en = findEnglishLanguage();
en.setSelected(true);
}
}
protected void onMain_ArabicLanguageAction(Component c, ActionEvent
event){
if(findArabicLanguage() != null && UIManager.getInstance().getBundle
() != arabic) {
UIManager.getInstance().setBundle(arabic);
reloadForm();
}
}
protected void onMain_EnglishLanguageAction(Component c, ActionEvent
event){
if(findEnglishLanguage() != null && UIManager.getInstance().
getBundle() != english) {
UIManager.getInstance().setBundle(english);
reloadForm();
}
}
--
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/bf69e2e5-6334-46c1-b895-38963a4a4ac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.