Article View: borland.public.jbuilder.java.swing
Article #9368Re: gif-File load from a jar-File
From: Greg Hamer
Date: Tue, 18 Apr 2000 00:00
Date: Tue, 18 Apr 2000 00:00
21 lines
1042 bytes
1042 bytes
Find a nearby class file and then
return new ImageIcon((server.NearbyClass.getResource("test.gif"));
Rainer <rd@ley.de> wrote in message news:8certe$k3q4@bornews.borland.com...
> Hi Programers,
>
> How could i load Image�s from jar File. I need it for a Applet.
> In the moment i load it via URL like
>
> return new
> ImageIcon((Toolkit.getDefaultToolkit().getImage(http:\\server\test.gif)),
> description);
>
> Thanks for Help
>
> Rainer, Germany (mailto:rd@ley.de)
>
>
>
>
Technical Details
Message-ID:
<8div0m$q215@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8certe$k3q4@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,b6326b481341ca8b X-Google-Attributes: gid111d45,public From: "Greg Hamer" <ghamer@corp.netzero.net> Subject: Re: gif-File load from a jar-File Date: 2000/04/18 Message-ID: <8div0m$q215@bornews.borland.com> X-Deja-AN: 612928455 References: <8certe$k3q4@bornews.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing