I know that I am having a security issue because the applet is trying to acess a file on my computer (where the code is housed also). How do I fix it so that the applet can get to these images?
If you want to get images in an Applet, you shouldn't use File f = new File(). You should use the getImage() method found in the class Applet. This should work without getting the Access permission exception.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.