Code example for PropertyResourceBundle

Methods: getString

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