Have you tried to turn the component's DoubleBuffering off?

JComponent jc

jc.setDoubleBuffered(false);

Alan

-----Original Message-----
From: Todd Byrne [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA2D] Repainting / Painting problems...


I have tried using repaint(); in an effort to force it to paint, but it
does not work.  It never repaints the only way you can get it to repaint
is to move a window over it, resize the window, or invoke a menu.  I
have
tried using SwingUtilities.updateComponentTreeUI() on the frame with no
luck.  I have tried invalidating the layout also with out any success.

Todd Byrne

On Fri, 24 Aug 2001, Jeff Kardatzke wrote:

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


**********************************************************************
This note confirms that this email message has been swept by
Genaissance Pharmaceuticals  Anti Virus defense  system for the
presence of computer viruses.
**********************************************************************


NOTICE:  This transmission, and any attached files, may contain information from 
Genaissance Pharmaceuticals which is confidential and/or legally privileged.  
Such information is intended only for the use of the individual or entity to whom 
this transmission is addressed.  If you are not the intended recipient, you are 
hereby notified that any disclosure, copying, distribution or the taking of any 
action in reliance on the contents of this transmitted information is strictly 
prohibited, that copies of this transmission and attached files should be deleted
from your disk directories immediately, and that any printed copies of thist
 ransmission and attached files should be returned to the above address.  If you 
have received this transmission in error, please notify Genaissance by telephone 
(toll-free, 1-877-ISOGENE) or e-mail immediately.  Thank you.

*******************************************************************************
This note confirms that this email message has been swept by
Genaissance Pharmaceuticals  Anti Virus defense  system for the
presence of computer viruses.
*******************************************************************************

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