Vanishing icons

My icons disappear when I move my program to another computer.

I am currently using the setIcon method and know the problem is that the file path of the ocon is relative to my computer, not my program.

Is there any way I can set the file path of my icons so they are relative to my program, not my computer.

Cheers for any help you're able to give.

[381 byte] By [p0e08] at [2007-9-26 1:23:02]
# 1

hi

Try to maintain a package hierarchy.Place ur codings in one package and Images in another package.So whenever u float to another computer just carry the packages.

eg..

<mainPackage>

--> <ur codings>

--> <images>

thanks

sasivarnan at 2007-6-29 1:00:56 > top of Java-index,Archived Forums,Swing...
# 2
Sorry, bit this makes no sence to me.Cheers anyway.
p0e08 at 2007-6-29 1:00:56 > top of Java-index,Archived Forums,Swing...
# 3
I have the same problem. How did you solve the problem?Nazire
nazire at 2007-6-29 1:00:56 > top of Java-index,Archived Forums,Swing...