Article View: borland.public.jbuilder.java.api
Article #650How to include GIF in jar-file
From: J. Ebert
Date: Tue, 25 Mar 2003 11:08
Date: Tue, 25 Mar 2003 11:08
19 lines
1530 bytes
1530 bytes
Right now we use a nice gif to show if a checkbox is activated.
The code is very simple (and a prototyp):
if ( IsFarbig ) {
String dateiname = "c:\\cross_16mal18.gif";
ImageIcon icon = new ImageIcon( dateiname );
File f = new File( dateiname );
if ( f.exists() && !Penabled && this.isSelected() ) {
this.setIcon( icon );
}
else
this.setIcon( null );
}
I would like to have the gif in the jar-File that the archive
builder builds. And I do not know how to reference the gif when
it is not on the disk.
Anyone can help?
Technical Details
Message-ID:
<3e803895$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,b0881a9f84e280a7,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-03-25 03:10:00 PST From: "J. Ebert" <ebert@hhpv.de> Sender: "J. Ebert" <ebert@hhpv.de> Reply-To: "J. Ebert" <ebert@hhpv.de> Subject: How to include GIF in jar-file Newsgroups: borland.public.jbuilder.java.api X-User-Info: 212.18.80.16 212.18.80.16 X-Forwarded-For: unknown, 212.18.75.194 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3e803895$1@newsgroups.borland.com> Date: 25 Mar 2003 03:08:05 -0800 X-Trace: newsgroups.borland.com 1048590485 207.105.83.65 (25 Mar 2003 03:08:05 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail