Article View: borland.public.jbuilder.java.swing
Article #11002Re: JButton images
From: Tor Iver Wilhelmsen
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
18 lines
1068 bytes
1068 bytes
David <david.v.clark@lmco.com> writes:
> firstImage = new
> ImageIcon(Org_Client.OrgClientFrame.class.getResource("first.gif"));
This requires that the "first.gif" file is located in the directory
Org_Client.
> Then I assigned it in the property editor for the JButton. But it
> gives a NullPointerException. What am I doing wrong?
Most likely, it cannot locate the image file.
> By the way, does anyone know where I can get some good (free) button
> images to download for my application?
Try searching either www.developer.com or www.javalobby.org; I found
some nice ones on the latter.
Technical Details
Message-ID:
<uaesx9k0r.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<378DFCD3.ED37EB88@lmco.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,accff0b1708abe67 X-Google-Attributes: gid111d45,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: JButton images Date: 1999/07/16 Message-ID: <uaesx9k0r.fsf@sds.no> X-Deja-AN: 501637088 Sender: towi@SDSA1761 References: <378DFCD3.ED37EB88@lmco.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing