Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid image caching in Swing

 
Deb Sadhukhan
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet, which uses multiple images. Some of the images are loaded based on user actions. Applet makes http request and server loads images from file system (server hard disc) using ImageIcon and then converts to int array which gets added to the response.

On the client side image is reconstructed using Toolkit.createImage and displayed on the applet.

Problem I'm facing, even after image on the server is changed, applet does not show the updated image, even after applet is closed and reopened. How can I avoid caching of these images? � Thanks
[ June 27, 2007: Message edited by: Deb Sadhukhan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic