Questions tagged [textflow]
50 questions
7
votes
1 answer
Unity How do I Flow TextMesh Pro Text around an Image?
Unity Version: 5.6.5f1 Personal
TextMesh Pro Version: 1.0.56.0b3
I have a TextMesh Pro UI Text object whose area intersects the area of a UI Image. The text is dynamic, but the image will never change. Is there a way to make the TextMesh Pro UI Text…
![](../../users/profiles/9474008.webp)
Katherine Cykes
- 342
- 3
- 9
6
votes
1 answer
JavaFX - Center Text in TextFlow vertically
I'm currently working with JavaFX' Text and TextFlow layout, and I need to figure out how to center the Text node inside a TextFlow.
As you see in the picture below, I've added some ImageView's, to simulate emoticons which I want to add.
The problem…
![](../../users/profiles/5615462.webp)
Rouman
- 117
- 1
- 13
6
votes
2 answers
JavaFX: setting background color for Text controls
I'm using a TextFlow and some Text items to show a styled text, but i cant find a way to set a simple background color for the Text items.
I can set the fill color and font but it does not have a java method or css property that sets its background…
![](../../users/profiles/1637329.webp)
Farzad Bekran
- 381
- 1
- 3
- 13
4
votes
2 answers
html5 or css 'smart text flow' to evenly distribute a sentence or paragraph over equally wide lines?
Suppose I have a dynamic HTML element (a span or div or whatever) with a sentence or paragraph of text inside, like this:
Now if I make the sentence slightly longer, it might need an extra line, like this:
Note how the last word is on a separate…
![](../../users/profiles/3914111.webp)
RocketNuts
- 7,383
- 6
- 29
- 64
4
votes
1 answer
How to make textflow selectable
I have made a TextFlow, as I need to use multiple font-postures (I have set particular "Text" to either italic or normal). Once I display the TextFlow, it's not selectable/copyable. All I need is the TextFlow to be selectable once it's displayed in…
![](../../users/profiles/2405926.webp)
RhysBuddy
- 107
- 3
- 11
4
votes
1 answer
Autoscroll JavaFX TextFlow
I have a JavaFX TextFlow wrapped in a ScrollPane, and I am trying to get it to automatically scroll to the bottom whenever a new Text is added to the TextFlow.
I have tried attaching listeners maxing the ScrollPane's vvalue to:
The ScrollPane's…
![](../../users/profiles/4142713.webp)
DennisW
- 1,047
- 1
- 8
- 17
3
votes
2 answers
Textflow inside Tablecell: not correct cell height
I wont to place formated text inside a JavaFX table. First I was trying to embedd a Webview but I had problems with cell heigh. This seems to be a mission feature in JavafX (see: Java FX: TableView - display simple HTML).
Based on the recommendation…
![](../../users/profiles/4383152.webp)
BerndGit
- 1,278
- 2
- 13
- 39
3
votes
1 answer
How to remove text from textflow in javafx?
I'm new to javafx and am trying to display large amount of text in textflow. It displays fine, but I just cannot figure out how to delete the text.
So what I'm trying to do is delete all Text nodes from textFlow like…
![](../../users/profiles/4688910.webp)
vikiv
- 141
- 1
- 7
3
votes
2 answers
JavaFX TableView with highlighted text
I want to highlight parts of text displayed in a JavaFX TableView. Till now i'm using Text objects in TextFlow objects. To highlight specific parts in a text i am using tags to cut the text in parts (javafx.scene.text objects) to highlight or not to…
![](../../users/profiles/1965084.webp)
alex
- 5,078
- 2
- 31
- 59
3
votes
1 answer
Highlight text in TableView with TextFlow
I read since JavaFX 8 you can make use of TextFlow to highlight text. But I don't know how to use it for my TableView. In my controller class I've got this:
TableView tvPerson;
TableColumn tcName;
ObservableList…
![](../../users/profiles/474326.webp)
cody
- 5,377
- 13
- 47
- 69
3
votes
1 answer
JavaFX: How to stop TextFLow objects from Wrapping
I using TextFlow object as the graphic node for a CheckBoxTextItem (from controlsFX).
If the TextFlow object is longer the width of the tree view, it gets wrapped. How can I stop the wrapping? or set something like an Ellipsis String-- like what…
![](../../users/profiles/3044612.webp)
melkhaldi
- 869
- 1
- 18
- 37
2
votes
1 answer
JavaFX TextFlow set default text color
As the title, it's possible to to apply a default color to all text of a TextFlow component?
TextFlow textFlow = new TextFlow();
textFlow.setId("supertextflow");
// Somewhere else in the code
textFlow.getChildren()
.add(new Text("Dynamic added…
![](../../users/profiles/2508770.webp)
Emax
- 1,220
- 1
- 18
- 28
2
votes
1 answer
TitledPane not resized vertically when using a TextFlow in a custom control
I'm using a TextFlow with a Text inside a custom JavaFX control and this control is placed in a TitledPane.
Control declaration :
public class CustomControl extends Control {
@Override
protected Skin> createDefaultSkin() {
return…
![](../../users/profiles/3218378.webp)
amischler
- 128
- 5
2
votes
1 answer
TextFlow in JavaFX does not show anything
I have created a UI for my application using "JavaFX Scene Builder".
I need to show text inside the TextFlow object so in my class (implements javafx.fxml.Initializable ) I write this
public void initialize(URL location, ResourceBundle resources)
{…
![](../../users/profiles/3901074.webp)
Matt
- 633
- 1
- 14
- 31
2
votes
1 answer
TLF find element position
I got a issue with the TLF trying to find the position of an element (e.g. LinkElement), before it is added to the display list.
I tried the following code:
Create my textFlow:
var textFlow:TextFlow =…
![](../../users/profiles/2085005.webp)
Guillaume
- 59
- 5