Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25517

Re: Images out of a jar

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Images out of a jar
Date 2011-01-28 23:34 -0500
Organization The Wasteland
Message-ID <nospam-6E1406.23344928012011@news.aioe.org> (permalink)
References <ihvsei$a57$1@news.eternal-september.org>

Show all headers | View raw


In article <ihvsei$a57$1@news.eternal-september.org>,
 Sam Takoy <sam.takoy@yahoo.com> wrote:

> Can someone point to a source where it is explained how to add image 
> files to a jar and then use them in an applet. I'm not able to find 
> the info regarding where to put the image within the jar and then how 
> to extract it later.

As Arne's suggests, getResource() is a convenient approach. Although 
this example is an application rather than an applet, you might have a 
look here:

<http://sites.google.com/site/drjohnbmatthews/googleolympiad>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | Next | Find similar


Thread

Re: Images out of a jar "John B. Matthews" <nospam@nospam.invalid> - 2011-01-28 23:34 -0500

csiph-web