Hi Chris,
I probably would have gone in a different direction since Swing
components are automatically double buffered. The multiple paint calls are
probably due to JScrollPane's generic implementation as you draw beyond the
visible size. If you examine the clip area associated with the passed
graphics, I'd expect the height to be very small during the flurry of
invocations. And, unless your method is smarter than most, probably all of
the operations are being done over and over.
Joe Sam
Joe Sam Shirah
Autumn Software
What you don't know DOES hurt you...and your business
___________________________________________
-----Original Message-----
From: Chris Roffler <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, October 07, 1999 9:37 AM
Subject: [JAVA2D] Repaint problem
>In my application I have a JScrollPane with a GCanvas in it. ( GCanvas
>is my drawing are , and it is a subclass of JComponent) I use a
>BufferedImage to draw all my graphics. After I execute the call
>g.drawImage(.......) the paint(Graphics g) method is called over and
>over again. When I remove the canvas from the JScrollPane and place the
>canvas on a panel all works fine .
>
>Any ideas ?
>
>Thanks
>Chris
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".