/** * Allows to pre-initialize icons used by the <code>Panel</code> * constructor. It is not neccessary to call it and it should * be called only once. * This method is safe to be called by another thread than the * event thread as it doesn't manipulate Swing <code>JComponent</code> * instances. */ public static synchronized void initCountryIcons() { // don't need to init several times... if (iconMap == null) { iconMap = new HashMap(); StringTokenizer st; st = new StringTokenizer(resources.getString("Country.list"), " "); while (st.hasMoreTokens()) { computeCountryIcon(LanguageDialog.Panel.class, st.nextToken()); } } }
/** * Allows to pre-initialize icons used by the <code>Panel</code> * constructor. It is not neccessary to call it and it should * be called only once. * This method is safe to be called by another thread than the * event thread as it doesn't manipulate Swing <code>JComponent</code> * instances. */ public static synchronized void initCountryIcons() { // don't need to init several times... if (iconMap == null) { iconMap = new HashMap(); StringTokenizer st; st = new StringTokenizer(resources.getString("Country.list"), " "); while (st.hasMoreTokens()) { computeCountryIcon(LanguageDialog.Panel.class, st.nextToken()); } } }
/** * returns the icon associated with a country code. */ protected Icon getCountryIcon(String code) { return computeCountryIcon(getClass(), code); }
/** * returns the icon associated with a country code. */ protected Icon getCountryIcon(String code) { return computeCountryIcon(getClass(), code); }