Article View: borland.public.jbuilder.java.swing
Article #1437Re: How do I get the paint Rectangle in paintComponent()
From: John McGrath [TeamB]
Date: Wed, 19 Nov 2003 06:55
Date: Wed, 19 Nov 2003 06:55
21 lines
1663 bytes
1663 bytes
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.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3fbb2203@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<1069206098.357352@cswreg.cos.agilent.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 00:09:12 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: How do I get the paint Rectangle in paintComponent() Newsgroups: borland.public.jbuilder.java.swing References: <1069206098.357352@cswreg.cos.agilent.com> User-Agent: XanaNews/1.15.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.151.22.18 Message-ID: <3fbb2203@newsgroups.borland.com> Date: 18 Nov 2003 23:55:47 -0700 X-Trace: newsgroups.borland.com 1069228547 141.151.22.18 (18 Nov 2003 23:55:47 -0700) Lines: 21 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail