🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: icons in resouce files

#8513
From: Nils Olav Sel�sdal
Date: Fri, 11 Aug 2000 00:00
6 lines
1057 bytes
>
> selectIcon = new ImageIcon( getClass().getResource( "EastArrow.gif" ) );
This will not work for me, i use JDKv1.3 on Win2000
If i do the above, it works fine. If i pack all my classes in a Jar,
the getClass().getResource( "EastArrow.gif" )(laying in the same package/dir
as the class calling. it returns null.
Technical Details
Message-ID: <cFNk5.28$By6.990@news1.online.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <399132b2$1_1@dnews> <39916BA2.F23915FD@aravox.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,59ce72ffe7b40e6e
X-Google-Attributes: gid111d45,public
From: "Nils Olav Sel�sdal" <noselasd@frisurf.no>
Subject: Re: icons in resouce files
Date: 2000/08/11
Message-ID: <cFNk5.28$By6.990@news1.online.no>
X-Deja-AN: 657064920
References: <399132b2$1_1@dnews> <39916BA2.F23915FD@aravox.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: news-abuse@online.no
X-Trace: news1.online.no 965977800 130.67.113.244 (Fri, 11 Aug 2000 09:10:00 MET DST)
Organization: Telenor Online Public Access
X-MSMail-Priority: Normal
NNTP-Posting-Date: Fri, 11 Aug 2000 09:10:00 MET DST
Newsgroups: borland.public.jbuilder.java.swing