0

Hello lovely people,

I created an application in which I use pictures to create background and other things. But when i send my application to someone so they can have a look at it, the image are not displayed. I know why they are not displaying(the image directory isn't the same for other computers) but i do not know how to fix this.

I'm using these following line to get my images:

Image backgroundImg = Toolkit.getDefaultToolkit().getImage("C:\\Users\\Taimoor\\Documents\\NetBeansProjects\\Menu\\src\\menu\\SHMBG2SHM.jpg");
    Image ballImg = Toolkit.getDefaultToolkit().getImage("C:\\Users\\Taimoor\\Documents\\NetBeansProjects\\Menu\\src\\menu\\SHMBallSHM.gif");

Suggestions?

Thank you in Advance

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by masijade
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.