Hi,

Shouldn't
Image.load(url)

hit the application context resource cache?

(so one doesn't need to write things like

    private static Image Away, Busy, Offline, Online, Trash;
    static {
        ApplicationContext.ResourceCacheDictionary cache =
ApplicationContext.getResourceCache();

        Class clas = Applet.class;
        URL url;
        url = clas.getResource("user-away.png");
        if (!cache.containsKey(url)){
            Away = Image.load(url);
            cache.put(url,Away);
        }
        else
            Away = (Image)cache.get(url);


/john/

Reply via email to