Code example for PropertyResourceBundle

Methods: getString

0
        customMap.clear(); 
    } 
 
    public static String getString(String propertyName) {
        String pluginString = PluginRes.getDefaultRes(propertyName);
        return pluginString != null ? pluginString : prb.getString(propertyName);
    } 
 
    public static boolean getBoolean(String propertyName) {
	return getString(propertyName).replace(" ","").equals("true");
    } 
 
    public static ImageIcon getImageIcon(String imageName) {
        // Check custom map 
        Object o = customMap.get(imageName);
        if (o != null && o instanceof ImageIcon) {
            return (ImageIcon)o;
        } 
 
        // Otherwise check cache