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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -