Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: Images out of a jar Date: Fri, 28 Jan 2011 23:34:50 -0500 Organization: The Wasteland Lines: 18 Message-ID: References: NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: csiph.com comp.lang.java.programmer:25517 In article , Sam Takoy 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: -- John B. Matthews trashgod at gmail dot com