Try packaging your application and running it on a different computer. Using getResource allows you to package the app and images into a single jar. Relying on full paths is not very portable from...
Type: Posts; User: copeg
Try packaging your application and running it on a different computer. Using getResource allows you to package the app and images into a single jar. Relying on full paths is not very portable from...
The JVM most likely cannot find the image because it isn't where you said it is. In your first code listing, try using the full path to the image.