Article View: borland.public.jbuilder.java.language
Article #16202How to access a GIF file in JB project or JAR?
From: Dr. Matt H. Stevens
Date: Wed, 17 Mar 1999 00:00
Date: Wed, 17 Mar 1999 00:00
13 lines
1362 bytes
1362 bytes
Hi all, I see it is possible to embed a GIF image file into a project
and then include it into a JAR file via the deployment wizard. I like
this, but how do I access or reference this GIF image from my java
code, for example: this.setIconImageName("my.iconlib.upArrow.GIF");
This doesn't work but it shows my intent. Right now we are having to
put or install image files in a specific directory and then pass this
directory location into the app via the "-D" option. This is bad since
code has to be changed at the end of the development cycle to reflect
how our software is java installed on one's computer system.
Perferrablly, we want to embed these GIF's directly into the app's JAR
file or into separate library such as "OurImageLib.JAR". How is the
referenceing done correctly?
Thanks in Advance, Matt
Technical Details
Message-ID:
<36F01A9F.7956871E@mmm.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5aa3043313ad7e4a,start X-Google-Attributes: gidf74b3,public From: "Dr. Matt H. Stevens" <mhstevens@mmm.com> Subject: How to access a GIF file in JB project or JAR? Date: 1999/03/17 Message-ID: <36F01A9F.7956871E@mmm.com> X-Deja-AN: 455864864 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: 3m Mime-Version: 1.0 Reply-To: mhstevens@mmm.com Newsgroups: borland.public.jbuilder.java.language