Hey guys,
I have the following problem and maybe somebody can help me with that. I am programming a simulation which operates sequentially. It is an applet which generates a graphical window and this window has several charts in it (from JFreeChart). After every time period the charts are updated.
Now the problem is that after 12 time periods or so the program fails to update the main window and then completely breaks down. The applet does not react to anything anymore and I have to terminate everything via the windows task manager.
I have therefore debugged the program and I found that the problem is that the system fails to invoke the updating method. When I set a breakpoint here
SwingUtilities.invokeAndWait(new Runnable(){
public void run(){
mainWindow.update();
}
});
and here (in MainWindow)
public void update() {
updateCharts() ;
}
then the second breakpoint is never reached. The system just waits forever. Does anybody have a clue why this could be the case? Remember, it works well a dozen times and then just decides not to.
Hendrik