text - JavaFX Flowpane to New Line -


i have flowpane go new line every time add new child (another entry of text)

text text1 = new text("here text"); text text2 = new text("this should on new line");  flowpane.getchildren().add(text1); flowpane.getchildren().add(text2); //should go next line 

this keeps appending text next each other so:

"here textthis should on new line" 

does out there know of way fix this? seems should straight forward part of api, can't find relevant problem.

from api: a horizontal flowpane (the default) layout nodes in rows, wrapping @ flowpane's width.. basically, default, components added in same row until there's not enough space available.

you want either change orientation, or use layout.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -