Wednesday, March 24, 2004 08:25 AM
I am trying to display one image in JLabel, my problem is, that image is stored in jar file and I don't know how extract it with my java code.
the jar structure is:
+ more packages ...
I am using this code to display it
lblFoto= new JLabel();
ImageIcon f = new ImageIcon("image.gif");
and it work fine if I in the absolute address of image's copy in hard disk
but I need to use the image in jar file
I tried with "image.gif","Package1.image.gif" and "Package1/image.gif"
but it not works!!
Please if somebody knows how do it, tell me
I am sorry my poor English
Re: Display picture stored in jar file
Sunday, March 28, 2004 09:43 AM