I am rendering a graph from a GraphML source file using either JUNG or Prefuse. Now another program updates this source file periodically with new nodes and edges. I want to update the graph to reflect these changes as well. I cannot find anything in both APIs themselves that let me do this (no appropriate refresh(TIMER) or redraw(TIMER) kind of methods). The one way of doing this might be to terminate the JFrame after some time period and redo the whole data loading, visualization and rendering process again, but that doesn't seem proper to me.
So the question is, what's the best way to do this as simply and as quickly as possible? Thanks :)