View Single Post
  #2 (permalink)  
Old 03-08-2008, 08:18 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
Besides policy files and the signing of applets, a couple of possiblities/suggestions:
Applets seem to balk at the creation of files.
Sometimes you can get around this by avoiding the File constructors and using URLs instead.
Code:
URL url = getClass().getResource(imagePath); BufferedImage image = ImageIO.read(url);
Another possibility can be to load the images in a class that is declared outside the body of the applet.
Reply With Quote