PDA

View Full Version : CellRenderer Question


alernon
03-13-2007, 04:20 PM
I created a little media player that can show audio or video. When the movie loads I use a cellrenderer to put a small icon in each row of a data grid that shows whether that track is audio or video. When a user hits play on a track I call the cellrenderer again to replace the icon in the currently selected track to a playing icon. and turn any old playing icon back to it's old audio or video icon

Everything works, but calling the cellrenderer again, causes a noticible 'blink' of the datagrid contents. Is there a way to stop this? Or if anyone has a way to replace the playing icon with the old icon and insert a playing icon in the currently playing track, that be awesome. I can't seem to find a way to target the icon movie clip within a row. All the cellrender/datagrid function target the data not the movie clip row itself.