private void completePanel() { jlFederationLocaleNiveau.setText(profile.getConfiguration().getLangue()); if (federation == null) return; jtfFederatonSigle.setText(federation.getSigleFederation()); jtfFederatonName.setText(federation.getNomFederation()); ccbCountryFederation.setSelectedCountry(federation.getCodeCountry()); for (CompetitionLevel cl : federation.getCompetitionLevels()) { if (cl.getLang().equals(profile.getConfiguration().getLangue())) { String tmp = ""; // $NON-NLS-1$ if (!jtfFederationNiveau.getText().isEmpty()) tmp = jtfFederationNiveau.getText() + ","; // $NON-NLS-1$ tmp += cl.getLibelle(); jtfFederationNiveau.setText(tmp); } else { if (!mTraduction.containsKey(cl.getLang())) { addLocaleLevelField(cl.getLang()); jcbAvailableLocale.removeItem(new Locale(cl.getLang())); if (jcbAvailableLocale.getItemCount() == 0) { jcbAvailableLocale.setEnabled(false); jbAddLocale.setEnabled(false); } jlAddLocaleInfo.setVisible(true); } String tmp = ""; // $NON-NLS-1$ JTextField tmpTF = mTraduction.get(cl.getLang()); if (!tmpTF.getText().isEmpty()) tmp = tmpTF.getText() + ","; // $NON-NLS-1$ tmp += cl.getLibelle(); tmpTF.setText(tmp); } } }