Is this an applet? The applet plugin itself does caching.
Otherwise, don't use the version of ImageIcon that takes a path string
as an argument, because it callsToolkit's getImage, which caches.
Instead use the ImageIcon constructor that takes an image, and use
ImageIO to read that image.
> But the Imageio read in a buffered image and the seticon method needs an image.
Huh?
BufferedImage bi = ImageIO.read(url_or_file_etc);
Icon icon = new ImageIcon(bi);
label.setIcon(icon);
BufferedImage is a subclass of Image, natch.