Carl Bernardi

Greenhorn
+ Follow
since Jan 15, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Carl Bernardi

Thanks for the replies.
5 years ago
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.
5 years ago
I would like to bind cursorProperty() from Scene or add a listener so I detect the when the cursor changes.
5 years ago
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.

Thanks.
5 years ago
This is what I am doing.

5 years ago
I did notice that StringBuilder is faster than StringBuffer. What would be the proper way to know that you have reached the end of the stream?
5 years ago
After a run to the beer store if figured it out.

while(line.append(reader.readLine().toString()) != null){

You have to catch the NullPointerException.
5 years ago
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?
5 years ago
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.
5 years ago
I would like to set a minimum size such as 200x200 so when my pane is resized it cannot be any smaller then the select minimum size. Anyone ideas?
5 years ago
Figure out what I was doing wrong. I have "void" in my constructor call making a method.
5 years ago
I found what I was looking for. Use the method setFont(Font f.
5 years ago
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.
5 years ago
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.



Anyone know how to do this?
5 years ago
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.
5 years ago