Code example for PropertyResourceBundle

Methods: getString

0
        prb = (PropertyResourceBundle)ResourceBundle.getBundle("org/jivesoftware/resource/spark");
    } 
 
    public static String getString(String propertyName) {
    	String pluginString = PluginRes.getSparkRes(propertyName);
        return pluginString != null ? pluginString : prb.getString(propertyName);
    } 
 
    public static ImageIcon getImageIcon(String imageName) {
        try { 
            final URL imageURL = getURL(imageName);
            return new ImageIcon(imageURL);
        } 
        catch (Exception ex) {
            Log.error(imageName + " not found.");
        } 
        return null; 
    } 
 
    public static URL getURL(String propertyName) {