Hey you guys,
I finished a 3 tiered standalone application that has a neat looking GUI (for a swing beginner)...
problem is, when I tested the packaged app on another system everything worked fine apart from all my images, which failed to appear.
The images are used as backgrounds for all my different screens and components are positioned on top using GridbagLayout/constraints etc...
Works fine on my system and I have placed all the relevant image files in the gui package.
I think the problem lies in the filepath specification, where I defined it as:
filename = "c:/JavaParcs/project/gui/lake.jpg";
This is specific to my system but how can I fix it so that it can be accessed by any other?
(I tried taking out the
c:/ and the pics dissappeared on mine too)
I also tried:
filename = "./JavaParcs/project/gui/lake.jpg";
thinking that if a dot means look in the current dir.... but that didn't work either.
Can anyone help or at least point me to a relevant resource on the matter?
Regards,
J
[ September 24, 2004: Message edited by: J Chandler ]