If I was to copy paste your code into my IDE, it would tell me I do not have the Plot and PlotFrame class.
Therefore I can not run your code to produce the results you claim to get.
Without running...
Type: Posts; User: jps
If I was to copy paste your code into my IDE, it would tell me I do not have the Plot and PlotFrame class.
Therefore I can not run your code to produce the results you claim to get.
Without running...
Call it what ever you want to call it, the end result is it is the number of times the loop runs. All of the code in the body of the loop is executed. The setVisible statement was inside the loop...
That was when the setVisible line was inside the loop.
The real problem is the terminal freezing. Without seeing the missing code who can guess? Same goes for the frame going invisible over and...
SSCCE in a nutshell just means provide something we can compile and run to see the problem.
I can't get a frozen console window, or see the printlns, because there are missing class definitions. So...
Running out of suggestions (or should I say guesses).
Looks like it is time to post the SSCCE
Nothing in the posted code suggests that would happen. I can only guess something in one of the missing classes is causing that to happen when adding a new point.
Post a SSCCE, the posted code can...
It may seem simple and unimportant from your seat, but from the chair where your screen is not visible, it is important to post the code any time any change is made to the syntax. "Always" post the...
Always include the modified version of the code when changes are made.
infinite loops do not end, that is what is so special about them. Again, post the code showing the changes so we can see what...
There is only one loop in the posted code, use a println and test it
It sounds like an infinite loop or the thread is blocked.
This is where a debugger comes in handy, but it can still be done without one. Either way, you will just have to figure out where the...
the posted code is not the problem
Where is the Plot and PlotFrame class?
It is much easier to assist with a SSCCE
Please post the modified version of the code any time you make changes