Code example for Icon

Methods: getIconHeightgetIconWidthpaintIcon

0
        // Make a brighter version of the icon, and cache it. 
        rollover = ImageManipulator.brighten(icon);
        if(rollover == null)
            BUTTON_CACHE.put(rolloverName, NULL);
        else 
            BUTTON_CACHE.put(rolloverName, rollover);
         
        return rollover;
    }    
     
    private static Properties loadButtonNameMap() {
        Properties p = new Properties();
        URL url = ResourceManager.getURLResource("icon_mapping.properties");
        InputStream is = null;
        try { 
            if(url != null) {
                is = new BufferedInputStream(url.openStream());
                p.load(is);
            } 
        } catch(IOException ignored) {
        } finally { 
            IOUtils.closeQuietly(is);
        } 
        return p;
    } 
 
     
}