Article View: borland.public.jbuilder.java.api
Article #1021Re: another drawing problem
From: John McGrath TeamB
Date: Mon, 29 Apr 2002 04:14
Date: Mon, 29 Apr 2002 04:14
20 lines
1533 bytes
1533 bytes
On Sun, 28 Apr 2002 20:25:05 -0400, PeterH wrote:
> I have another piece of code that is acting funny which I don't understand.
This is the same problem you were seeing in your GroupPhotos class.
You have a non-opaque component that is not painting its entire area.
The result is that nothing paints it, and since Swing uses double
buffering, what gets painted is whatever was left in the buffer.
Adding super.paintComponent(g); at the top of the DrawSineWavePanel
paintComponent() method should fix the problem.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.173692b7cd53531c98b5a9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3ccc9486$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,93d7db106da00afd X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-04-28 21:27:38 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: another drawing problem Date: Mon, 29 Apr 2002 00:14:51 -0400 Message-ID: <MPG.173692b7cd53531c98b5a9@newsgroups.borland.com> References: <3ccc9486$1_1@dnews> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 1020053689 209.92.40.60 (28 Apr 2002 21:14:49 -0700) Lines: 20 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews