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…
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…
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…
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…
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…
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…
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…
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…
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…
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
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…
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…
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…
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) {…
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 =…
Guillaume
  • 59
  • 5
1
2 3 4