//Runs on the event-dispatching thread.
public void finished()
{
cmbLanguage.setModel(new DefaultComboBoxModel(i18n.getLanguages()));
LocaleModel lm = new LocaleModel(i18n);
cmbLanguage.addActionListener(lm);
String languageCode = Preferences.getString("jeti","language",getDefaultLocale().getLanguage());
ComboBoxModel model = cmbLanguage.getModel();
boolean selected=false;
for(int i=0;i<model.getSize();i++)