animation in custom table cell renderer  
Author Message
ovrubl





PostPosted: 2006-1-11 5:04:00 Top

java-programmer, animation in custom table cell renderer Does anybody know how to make animated gifs work in cell renderer?
I'm trying to use JLabel as base component with animated gif as image.
It works perfectly anywere except JTable...

 
Thomas Hawtin





PostPosted: 2006-1-11 5:34:00 Top

java-programmer >> animation in custom table cell renderer ovrubl wrote:
> Does anybody know how to make animated gifs work in cell renderer?
> I'm trying to use JLabel as base component with animated gif as image.
> It works perfectly anywere except JTable...

You will need an ImageObserver that requests a repaint of the relevant
area of the table. Repainting the call renderer component wont work,
because it gets moved about all the time.

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/