Solved! Whenever there is a change in the width or height property it turns a boolean to true. The threads attempting to draw pause while the boolean is true and then turn the boolean back to false after about 100ms allowing them to continue drawing.
I was wondering if anyone has ideas on how to detect WHILE a pane is being resized. Basically I have multiple threads drawing on the pane and would like the threads to stop while the pane is being resized. When I scroll the inside of the pane I am able to stop all threads by using a combination of setOnMouseDragged, setOnMousePressed and setOnMouseReleased and setting a boolean to true or false. Works great! Appreciated any examples.
I have the following code. What I would like to do is read each line from the BufferedReader directly into a StringBuffer to reduce memory overhead. Once it gets to the end of the data stream I would like it to exit the while loop.
It reads the stream fine but when I get to the end of the stream it returns null and keeps printing null without exiting the loop. Any ideas?
Not sure what SSCCE is but I guess it means code. I was getting a null error the way I reading some data from a file. Since it was tied to the size of the scene I thought a min size would fix the problem. Turns out I was just reading data at the wrong time. Thanks for the reply however.
I created my own chart with x and y axises. I found the present choices of charts did not suite my needs. I have managed to built my chart to my likings and now I would like to add all the components to an object that extends AnchorPane. The end results is that my code compiles with no errors, no runtime errors but I don't see any of my panes that I created. I was wondering what the correct procedure is to extend AnchorPane.
I would like to be able to change the font size and possibly the font itself before the strokeText() method is called. I can change the color but I don't see anyway to change the font.
I created my own chart with x and y axises. I found the present choices of charts did not suite my needs. I have managed to built my chart to my likings and now I would like to add all the components to an object that extends AnchorPane. The end results is that my code compiles with no errors, no runtime errors but I don't see any of my panes that I created. I was wondering what the correct procedure is to extend AnchorPane.