Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use TextFlow from FXML?

Uzivatel919May 25 2016 — edited May 27 2016

Crossposted:

http://stackoverflow.com/questions/37436595/how-to-use-textflow-from-fxml

http://www.coderanch.com/t/666101/JavaFX/java/TextFlow-FXML#3105251

I am trying to use TextFlow coming from FXML but no text is shown.

I have tried:

textflow.getChildren.add(text);

and also:

textflow=new TextFlow(text);

where text is:

Text text=new Text("AAA");

I both cases TextFlow shows nothing.

Is there another container for use with rich text using FXML JavaFX app?

For sure if I try both cases in non-FXML JavaFX app it works both of them.

This post has been answered by jsmith on May 27 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2016
Added on May 25 2016
5 comments
3,325 views