Article View: borland.public.jbuilder.java.swing
Article #9012Re: paint
From: Steve
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
24 lines
1335 bytes
1335 bytes
thanks....
"Paul Furbacher [TeamB]" wrote:
> steve wrote:
> >
> > I have an application that extends JFrame. When I resize it the paint
> > method fires twice. Is this a feature or a bug? My paint method looks
> > like this:
> >
> > public void paint(Graphics g)
> > {
> > super(g); // call parent paint
> > pnlCanvas.draw(g); // call draw method in other class
> > }
>
> Off the top of my head, I don't know if it's a feature. What
> happens when you comment out the "pnlCanvas.draw(g)" line?
> If it paints twice, then that's probably the way it was designed,
> although it seems a bit odd. But if it only paints once, then
> you have to look at what you are doing in your "draw()"
> method.
>
> Paul Furbacher (TeamB)
Technical Details
Message-ID:
<39355522.8A828784@teleworx.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<393153BB.D4559776@erols.com> <39347BB5.C5E84E4C@home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1f4ff6baf79110a0 X-Google-Attributes: gid111d45,public From: Steve <spetersen@teleworx.com> Subject: Re: paint Date: 2000/05/31 Message-ID: <39355522.8A828784@teleworx.com> X-Deja-AN: 629551109 Content-Transfer-Encoding: 7bit References: <393153BB.D4559776@erols.com> <39347BB5.C5E84E4C@home.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 31 May 2000 10:58:41 -0800, 127.0.0.1 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing