> where I'm trying to implement a card game.
> All cards are painted in my own Component
[quoted text clipped - 3 lines]
> and still that component flashes horribly
> on every repaint().
>>where I'm trying to implement a card game.
>>All cards are painted in my own Component
[quoted text clipped - 17 lines]
>
> http://reader.imagero.com the best java image reader.
A.
You didn't look carefully at my Pong applet or you would have seen the
exact code above. What ak didn't tell you is that update() clears the
component and calls paint(). When you override it with just a call to
paint(), no flicker.

Signature
Knute Johnson
email s/nospam/knute/
Molon labe...
A. Farber - 16 Feb 2004 10:23 GMT
> >>where I'm trying to implement a card game.
> >>All cards are painted in my own Component
[quoted text clipped - 9 lines]
> > paint(g);
> > }
> You didn't look carefully at my Pong applet or you would have seen the
> exact code above. What ak didn't tell you is that update() clears the
> component and calls paint(). When you override it with just a call to
> paint(), no flicker.
Hi, sorry but that's you who didn't look at the code ;-)
I have the update() function there. I think the flickering
is somehow related to the fact that my own component
extends Component. I've changed it to extend Canvas and
the flashing is gone now:
http://pref.dyndns.org/grid2/