🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Simple question I think.

#8375
From: Stephen
Date: Fri, 15 Sep 2000 00:00
24 lines
1082 bytes
It's ok I have worked out how to o it now.

I subclassed the Panel class and overrode the paint method.

Cheers
Stephen


Stephen <stephen.gemmell@cadspace.com> wrote in message
news:39c1fb71$0$23085$4db1788e@beta.news.uk.uu.net...
> Hi,
>
> I am trying to add a simple image to a panel with no success.
>
> How do I add the image to the panel?  I have constructed my
> image with the code below.
>
>     Image img;
>     img = new ImageIcon(MY_GIF);
>
> Cheers
> Stephen
>
>
Technical Details
Message-ID: <39c2170d$0$23084$4db1788e@beta.news.uk.uu.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39c1fb71$0$23085$4db1788e@beta.news.uk.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c75f955f7b52a84e
X-Google-Attributes: gid111d45,public
From: "Stephen" <stephen.gemmell@cadspace.com>
Subject: Re: Simple question I think.
Date: 2000/09/15
Message-ID: <39c2170d$0$23084$4db1788e@beta.news.uk.uu.net>
X-Deja-AN: 670119269
References: <39c1fb71$0$23085$4db1788e@beta.news.uk.uu.net>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Trace: 969021197 beta.news.uk.uu.net 23084 193.130.144.188
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing