Questions tagged [textflow]

52 questions
9
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…
user9474008
8
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
  • 9,958
  • 11
  • 47
  • 88
7
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
  • 127
  • 2
  • 14
7
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
  • 489
  • 1
  • 6
  • 13
6
votes
2 answers

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
  • 125
  • 3
  • 11
4
votes
1 answer

How to let JavaFX TextFlow automatically cut a long text?

I want to display some formatted text using TextFlow. Previousely, I used a simple Label (with wrapText set to true) to display that text (unformatted), but want to make use of a Library that provides a List of Texts that I would like to display…
BenT
  • 111
  • 9
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,057
  • 1
  • 8
  • 17
4
votes
2 answers

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
  • 899
  • 2
  • 19
  • 40
3
votes
3 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,530
  • 3
  • 18
  • 47
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
  • 151
  • 2
  • 8
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,516
  • 2
  • 36
  • 60
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
  • 6,389
  • 15
  • 52
  • 77
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,343
  • 2
  • 19
  • 30
2
votes
1 answer

Disable spacing between items in TextFlow in JavaFX

I'm trying to make a line of text which consists of a name and a string of text. I want the name to be a hyperlink and the rest to be just plain text. I thought TextFlow would be good for this, but the problem is it automatically puts a single space…
Radek
  • 23
  • 1
  • 4
2
votes
1 answer

javafx strange space characters in arabic

Using the code below to write a javafx arabic textflow text to the screen produces strange characters, it appears that the space characters between the words are getting jumbled up. see screenshot below. this issue only happens in my OS X sierra…
Ossama
  • 2,401
  • 7
  • 46
  • 83
1
2 3 4