/** * Displays the dialog. * * @throws Exception for any error */ public void initLangPack() throws Exception { // Loads the suitable langpack switch (locales.getLocales().size()) { case 0: // nothing to do at this point break; case 1: // propagate the specified language String codeOfUniqueLanguage = displayNames.keySet().iterator().next(); propagateLocale(codeOfUniqueLanguage); break; default: super.getOwner().setVisible(false); setVisible(true); } }
switch (locales.getLocales().size()) { case 0: break;