Looped repaint of display area
Hi everyone,
I am a new member of this forum and I need your help for a little problem I have.
I have this piece of code in my main function:
Code:
while (true) {
if (simRunning) {
da.repaint();
fpsGA.repaint();
vehiclesNumberGA.repaint();
}
}
The purpose of the code is to update the display area, and a few graph areas while my simulation is running. This worked perfectly for a while, but recently I think I've updated to a newer version of JDK and now the program doesn't seem to run the repaints if my simRunning boolean is true.
What is even more interesting, when I go to debug mode it does run the repaints when my simRunning is true. So only when I normally run my application I have the problem with the repaints.
Any suggestion will be appreciated.
Thanks,
Gix