Code example for PropertyResourceBundle

Methods: getString

0
        prb = (PropertyResourceBundle)ResourceBundle.getBundle("org/jivesoftware/spark/plugin/phone/resource/phone");
        irb = (PropertyResourceBundle)ResourceBundle.getBundle("org/jivesoftware/spark/plugin/phone/resource/sip_spark_i18n");
    } 
 
    public static final String getString(String propertyName) {
        return prb.getString(propertyName);
    } 
 
    public static final String getIString(String propertyName) {
        return irb.getString(propertyName);
    } 
 
    public static final ImageIcon getImageIcon(String imageName) {
        try { 
            final String iconURI = getString(imageName);
            final URL imageURL = cl.getResource(iconURI);
            return new ImageIcon(imageURL);
        } 
        catch (Exception ex) {
            System.out.println(imageName + " not found.");
Contextual code suggestions in your IDE  Get Codota for Java