
I need to plot a graph in Java but the samples are not known in advance. The samples keep on coming through callback and I need to plot them as I receive them. This requires calling repaint() again and again which redraws the entire area on the JPanel thereby overwriting the previous sketch. I cant wait till I receive the entire data as it might be too long and the final graph may be quite congested. So please guide me on this. Thanks... Vineet