java - JavaFX TextFlow without linebreaks -
java - JavaFX TextFlow without linebreaks -
is there way prevent javafx
textflow
command or text
children nodes break lines. want textflow
without line break growing horizontally.
textflow textflow = new textflow(); text text = new text("a verrrrryyyyy llllooooonnnnggggg text shouldn't contain line breaks."); textflow.getchildren().add(text);
setting setwrappingwidth
high value didn't remove line breaks me. help appreciated.
to quote api doc of textflow:
the wrapping width of layout determined region's current width. can specified application setting textflow's preferred width. if no wrapping desired, application can either set preferred double.max_value or region.use_computed_size.
i tried briefly , depending on parent container seems work intended it.
java javafx textflow
Comments
Post a Comment