![]() |
| ||
| Image Path I am creating a jar file which when run displays an image the image path is hardcoded ie the whole path is written. So whenever the jar file is run on a different computer to my own the image is not shown. So my question is how is it possible to display the image without explicity writing where the file is located, rather within the package itself? Thanks in advance |
| ||
| Re: Image Path by making sure the image is always in the same folder with your application and using relative paths |
| ||
| Re: Image Path Read this thread: http://www.daniweb.com/forums/thread42410.html You'll find that there are multiple ways to do what you need. I suggested getResource(). |
| ||
| Re: Image Path thanks brother |
| ||
| Re: Image Path Not a problem :) If you found your solution, please mark this thread as solved. |
| All times are GMT -4. The time now is 7:44 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC