Page 1 of 1

Refresh teechart

Posted: Tue Oct 07, 2008 4:37 pm
by 7667591
Hi,

Which is the best way to refresh tee chart ?

doInvalidate() ?
repaint()?
refreshControl()?
revalidate() ?
doLayout() ?

Thanks,
Varun

Posted: Wed Oct 08, 2008 9:46 am
by narcis
Hi Varun,

I don't think there are very important differences between doInvalidate(), repaint() and refreshControl() as all end up calling Component.java's repaint method. doInvalidate() and repaint() do exactly the same. While refreshControl() may be a little more eficient since it does some previous checkings as whether the control should be rendered or not.