Article View: borland.public.jbuilder.java.swing
Article #7822ImageIcon Question
From: James A. Schulz
Date: Tue, 02 Jan 2001 13:46
Date: Tue, 02 Jan 2001 13:46
13 lines
1266 bytes
1266 bytes
In a Swing applet, I have the following:
ImageIcon icon= new ImageIcon("left.gif");
JLabel jLabel1 = new JLabel("test",icon,JLabel.CENTER);
But, in fact, my JLabel shows nothing. The "left.gif" file is in every
possible folder (src, classes etc.), but still it does not show in the
label. It is a very small image 10x20 and only uses black an white. What
am I doing wrong?
thanks,
James
Technical Details
Message-ID:
<92sltv$qpr4@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,863e9e7787441cf9,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-02 05:44:48 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail From: "James A. Schulz" <jaschulz@wiseware.com> Newsgroups: borland.public.jbuilder.java.swing Subject: ImageIcon Question Date: Tue, 2 Jan 2001 07:46:21 -0600 Organization: Another Netscape Collabra Server User Lines: 15 Message-ID: <92sltv$qpr4@bornews.inprise.com> Reply-To: "James A. Schulz" <jaschulz@wiseware.com> NNTP-Posting-Host: user-vcautgu.dsl.mindspring.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200