Code example for PropertyResourceBundle

Methods: getString

0
    static { 
        prb = (PropertyResourceBundle)ResourceBundle.getBundle("org/jivesoftware/resource/configuration");
    } 
 
    public static String getString(String propertyName) {
        return prb.getString(propertyName);
    } 
 
    public static ImageIcon getImageIcon(String imageName) {
        final String iconURI = getString(imageName);
        final URL imageURL = cl.getResource(iconURI);
        return new ImageIcon(imageURL);
    } 
 
    public static URL getURL(String propertyName) {
        return cl.getResource(getString(propertyName));
    } 
}