Article View: borland.public.jbuilder.java.swing
Article #7830Re: ImageIcon Question
From: Rich Wilkman
Date: Tue, 02 Jan 2001 21:56
Date: Tue, 02 Jan 2001 21:56
21 lines
1538 bytes
1538 bytes
James:
Which browser and does it fail in both?
-Rich
"James A. Schulz" wrote:
> 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:
<3A524E76.97D5D5D3@formlessvoid.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.augsburg.net!fu-berlin.de!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!209.144.169.10References:
<92sltv$qpr4@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,863e9e7787441cf9 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-02 14:00:26 PST Message-ID: <3A524E76.97D5D5D3@formlessvoid.com> Date: Tue, 02 Jan 2001 13:56:06 -0800 From: Rich Wilkman <richw@formlessvoid.com> Reply-To: richw@formlessvoid.com X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en,ja MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: ImageIcon Question References: <92sltv$qpr4@bornews.inprise.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.144.169.10 X-Trace: 2 Jan 2001 13:56:34 -0800, 209.144.169.10 Lines: 22 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.augsburg.net!fu-berlin.de!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!209.144.169.10