🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9341

Re: HELP: simple loading gif question

#9341
From: Werner Moschina
Date: Mon, 17 Apr 2000 00:00
25 lines
1296 bytes
Hi Stephen,

> It doesn't appear to be working. 

in my application (JBuilder3 on Windows NT4) it works fine, the images
are displayed and moved to the directory where the *.class files are
written.

1. Copy "moveUp.gif" in the source directory
2. Add file "moveUp.gif" to the project
3. Use following code:

 imgMoveUp = new ImageIcon
(ApplicationFrame.class.getResource("moveUp.gif"));
 jButtonUp.setIcon(imgMoveUp);
 
4. Run project
5. Be happy. :-)

> Do you have any other suggestions?

Did you add the Image from the source or the "c:\gif" directory? Take
care of case sensitiveness in file names.

Regards, Werner
Technical Details
Message-ID: <38FAF998.885E6862@stutensee.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8bdtn7$hr12@bornews.borland.com> <MPG.13461abddce43f35989825@forums.borland.com> <8bobu5$n2p4@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6000043aed93d9a0
X-Google-Attributes: gid111d45,public
From: Werner Moschina <wmo@stutensee.net>
Subject: Re: HELP: simple loading gif question
Date: 2000/04/17
Message-ID: <38FAF998.885E6862@stutensee.net>
X-Deja-AN: 612193312
Content-Transfer-Encoding: 7bit
References: <8bdtn7$hr12@bornews.borland.com> <MPG.13461abddce43f35989825@forums.borland.com> <8bobu5$n2p4@bornews.borland.com>
X-Accept-Language: de
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing