| | |
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 |
Tag cloud for Java
addball android api apple applet application apps arguments array arrays automation binary bluetooth businessintelligence card chat class classes client code collision component crashcourse database draw eclipse ee error event exception file fractal free game gis givemetehcodez graphics gui helpwithhomework html ide image input integer integration j2me java javadoc javafx javaprojects jmf jni jpanel julia jvm linux list loop machine map method methods migrate mobile netbeans newbie nls number object oracle physics print problem program programming project radio recursion scanner screen security server service set size sms socket software sort sql string swing test textfield threads time tree trolltech utility windows





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