/** * Get an image ref. */ static Ref getCachedImageRef(URL url) { synchronized (imageRefs) { AppletImageRef ref = (AppletImageRef)imageRefs.get(url); if (ref == null) { ref = new AppletImageRef(url); imageRefs.put(url, ref); } return ref; } }
public static Ref getImageRef(URL url) { return AppletViewer.getCachedImageRef(url); }