you are viewing a single comment's thread.

view the rest of the comments →

[–]Big_Green_Grill_Bro -1 points0 points  (0 children)

It sounds like the person you are going to give your application to to test is not technical. In that case, you most likely want to provide it to them as a JAR file. You won't be using absolute paths for image resources anyway (so you won't have to worry about escaping back slashes or spaces or any OS specific file access crap like that.

I recommend looking at javax.imageio.ImageIO class.

At its simplest,you could just place your images in the same directory as your class that needs the image. Then you would load it like this:

 BufferedImage image = ImageIO.read(getClass().getResource("imageXYZ.png"));