🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Yeah, read about that. But how? Sample?

#7614
From: Tor Iver Wilhelmsen
Date: Mon, 08 Jan 2001 08:30
9 lines
1259 bytes
"Jason Swett" <swettboy@ncats.net> writes:

> I've read that, but the samples often include a lot of other pieces/parts
> that get in the way of getting it to work.  Can you give me a very short
> sample (but complete program) of that?

ImageIcon im = new ImageIcon("C:/yourImage.gif");
JLabel l = new JLabel(im);
yourJFrame.getContentPane().add(l, BorderLayout.CENTER);
Technical Details
Message-ID: <u3deuphti.fsf@sds.no>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail
References: <3a587c79_2@dnews> <3a588647_2@dnews> <ur92fuzhr.fsf@sds.no> <3a58e87e_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3d5e8a1122bfe253
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-08 00:36:36 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Yeah, read about that.  But how?  Sample?
Date: 08 Jan 2001 09:30:01 +0100
Organization: Another Netscape Collabra Server User
Lines: 9
Sender: towi@SDSA1761
Message-ID: <u3deuphti.fsf@sds.no>
References: <3a587c79_2@dnews> <3a588647_2@dnews> <ur92fuzhr.fsf@sds.no> <3a58e87e_2@dnews>
NNTP-Posting-Host: pc4-252.sds.no
X-Newsreader: Gnus v5.5/Emacs 20.3