java - How to remove text from textflow in javafx? -


i'm new javafx , trying display large amount of text in textflow. displays fine, cannot figure out how delete text.

so i'm trying delete text nodes textflow so

textflow.getchildren().removeall(); 

but when , add textflow, shows after text displayed there. text there removed , show added text beginning of textflow.

i guess have somehow rerender view of textflow, don't know how. how delete , add text anew?

removeall(...) remove values pass parameters: in case there none, doesn't remove anything. use

textflow.getchildren().clear(); 

Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -