| | |
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
actionlistener android api apple applet application apps arguments array arrays automation balls binary bluetooth card chat class classes client code component consumer database draw eclipse ee error event exception fractal free game gameprogramming gis givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javaprojects jmf jni jpanel julia jvm key linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie nextline nls notdisplaying number oracle output print problem program programming project recursion recursive scanner screen security server set size sms socket sort spamblocker sql sqlite string sun swing terminal test threads time tree trolltech windows





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