Saturday, July 27, 2002 04:48 AM
I'm trying to draw a graph on a JPanel, and it seems to be working fairly well. My program reads some input from a file, and draws a corresponding graph.
The only problem I have, is when I try to add a new value in my program - I'd want the graph to be automatically updated. Calling graph.revalidate() doesn't do the trick - the graph is not updated until the application window is changed in some way (resizing, minimizing and maximizing, or covering and then uncovering it with another window).
Any suggestions would be greatly appreciated.