Code example for ResourceBundle

Methods: containsKey, getString

0
	 * @param chave de busca no arquivo properties 
	 * @return texto no idioma padrão 
	 */ 
	public String getString(String key) {
            ResourceBundle bundle = getBundle();
            if (bundle.containsKey(key))
                    return bundle.getString(key);
            return "???" + key + "???";
	} 
	 
        protected ResourceBundle getBundle() {
            return bundle;
        } 
	 
}