 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Dec 16, 2006 12:09 am Post subject: adequate privileges to get the resource |
|
|
Hi, I am working on an applet. I am loading images from a class that is
not the main executing class of the applet. I am using the following
code
Component output_comp;
URL imgurl =
getClass().getClassLoader().getResource(("images/image1.gif"));
Image img = output_comp.getToolkit().createImage(imgurl);
The imgurl that is returned is null and I believe that the problem is
due to the caller not having adequate privileges to get the resource.
Is there some way I can fix this problem or does anyone know what my
problem could be? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|