| | |
Image Path
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
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
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
•
•
Join Date: Aug 2006
Posts: 137
Reputation:
Solved Threads: 11
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().
You'll find that there are multiple ways to do what you need. I suggested getResource().
![]() |
Similar Threads
- add watermark in image (ASP.NET)
- Image in database (PHP)
- Displaying a remote image from url stored in my db (ColdFusion)
- how to insert image path (C#)
- path to file, from javascript (JavaScript / DHTML / AJAX)
- preloading image (white page between) problem (JavaScript / DHTML / AJAX)
- Adding Image (Path) into MySql Database (PHP)
- Square Image Thumbnail (PHP)
- how to display an attached image file in email (ASP)
Other Threads in the Java Forum
- Previous Thread: about big endian and little endian representation
- Next Thread: To get ip in j2me
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary bluetooth character chat class classes client code component consumer csv database desktop draw eclipse error event exception fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javac javaee javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie objects online oracle oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion robot rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time tree ubuntu update windows





If you found your solution, please mark this thread as solved. 