You force a repaint by calling repaint().  If you want to force a re-layout
that goes with a repaint then that's usually done with revalidate() or
invalidate()/validate() calls.

And I'd like to say Java paints almost immediately unless you've got the
event thread locked up, in which case it won't paint until you release it
(very common mistake).  I don't know the exact details of when and how it
gets called, but for all practical purposes it's ASAP.

Jeff Kardatzke

-----Original Message-----
From: Discussion list for Java 2D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Todd Byrne
Sent: Friday, August 24, 2001 7:26 AM
To: [EMAIL PROTECTED]
Subject: [JAVA2D] Repainting / Painting problems...


How do you force a repaint?  Maybe I am doing it wrong, but I am trying to
setup a JSlider to control an animation by telling the View to repaint.

Another question, How does java desided when it is time to paint the
components? Thanks.

Todd Byrne

===========================================================================
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".

===========================================================================
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".

Reply via email to