Article View: borland.public.jbuilder.java.swing
Article #1438Re: How do I get the paint Rectangle in paintComponent()
From: Bill Darbie
Date: Wed, 19 Nov 2003 14:56
Date: Wed, 19 Nov 2003 14:56
32 lines
2394 bytes
2394 bytes
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:3fbb2203@newsgroups.borland.com... > On 11/18/2003 at 8:42:38 PM, Bill Darbie wrote: > > > Help! I have been stuck on this problem for hours. > > > > How do I get the Rectangle of the original repaint() call > > in a components paintComponent(Graphics graphics) method? > > You can't. There is no guaranteed correspondence between repaint() > calls and paintComponent() calls. Each repaint() call could result in > zero, one, or many paintComponent() calls. And each paintComponent() > call could be the result of one or many repaint calls, or it could be > the result of some event other than a repaint call. But once the paintComponent() is called, there is a Rectangle describing the area to be repainted that indirectly caused the call to happen. Is there no way to get that Rectangle? Thanks, Bill > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<1069253703.452885@cswreg.cos.agilent.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<1069206098.357352@cswreg.cos.agilent.com> <3fbb2203@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f24930dae02d93a3 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-11-19 07:10:59 PST From: "Bill Darbie" <noSpam@noSpam.com> Newsgroups: borland.public.jbuilder.java.swing References: <1069206098.357352@cswreg.cos.agilent.com> <3fbb2203@newsgroups.borland.com> Subject: Re: How do I get the paint Rectangle in paintComponent() Date: Wed, 19 Nov 2003 07:56:00 -0700 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Organization: Agilent Technologies Message-ID: <1069253703.452885@cswreg.cos.agilent.com> Cache-Post-Path: cswreg.cos.agilent.com!unknown@mtddarbi.lvld.agilent.com X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Cache-Post-Path: cswrelay.cos.agilent.com!unknown@cswreg.cos.agilent.com X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 192.6.143.83 X-Trace: newsgroups.borland.com 1069253703 192.6.143.83 (19 Nov 2003 06:55:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail