Questions tagged [textflow]
52 questions
0
votes
1 answer
JavaFX: New line spacing between texts in TextFlow
How can I reduce the space between the 2 texts?
I have the following code:
Text t1 = new Text("Header Text");
Text t2 = new Text("\nBody Text");
TextFlow textFlow = new…

Cherple
- 725
- 3
- 10
- 24
0
votes
1 answer
How to display white text with a black background?
I am trying to figure out why my text isn't being displayed here. I assume it isn't being colored white, and simply doesn't show up against the black background. So, I'm trying to figure out why the background is being colored black, but the text…

LuminousNutria
- 1,883
- 2
- 18
- 44
0
votes
0 answers
JavaFX Text and TextFlow Constructor Minutia
Why does adding to a TextFlow via a Text object constructed with method returning a plain String not work whereas adding to a Textflow via a Text object constructed with a reference to a String does work?

Toblor
- 13
- 1
- 7
0
votes
0 answers
Java regex - how to chop String into parts
I am trying to chop a text into an Array (or List).
For example the String
String str = "so this will be _ITALIC_ and this will be *BOLD* and so on";
shall be split into this:
String[] arr = new String[] {"so this will be ", "_ITALIC_", " and this…

lumo
- 790
- 1
- 8
- 23
0
votes
0 answers
JavaFX printerPage(Layout, Node) does not print a TextFlow
I am trying to print a formatted text.
Here is my code:
public class ProvaTextFlow {
public static void main(String[] args)
{
ProvaTextFlow p = new ProvaTextFlow() ;
Node tf = p.creaTesto();
p.stampa(tf);
}
…
0
votes
2 answers
Update TextFlow from another class JavaFx
I'm here with my JavaFx app.
I have two class:
I start these class in two different Thread. Because server is blockable.
My UI class ( Called Main ( I know i need to change this)).
A Server class ( Called Serveur )).
In my Server Class when i…

Wariie
- 1
- 2
0
votes
0 answers
Text beside and under a photo
i am trying to put some text beside a photo and i want this text to flow under the image as following. I use FOP 1.0 so i can't really use the float element
I tried to do it with absolute positioning of a block-container but then the text goes…

kosta.dani
- 447
- 2
- 11
0
votes
1 answer
Alignment of Text not working on TextFlow
I am new to javafx.
I am trying to build a messenger where the chatting panel show messages.
I want to align the messages like my own messages are on left and other messages are on right.
To display the message i am using TextFlow where I add Text.…

Sanjay Malakar
- 25
- 6
0
votes
2 answers
How to infer a page break in a TextFlow?
I am trying to create a NotePad screen in my application. Once notes are created they are locked and unable to be edited, however new pages can be added to a note.
I thought that using the TextFlow would be a great control for this. What I would…

purring pigeon
- 4,141
- 5
- 35
- 68
0
votes
0 answers
textFlow doesn't update with ActionEvent expression
I'm a total beginner trying to create a gui in javafx and I've run into the following problem.
I have a textField that accepts user input and a textFlow that displays the input along with other stuff.
I tried to use the textField's ActionEvent to…

Sotiris
- 53
- 11
0
votes
1 answer
Transmit Strings to Main thread from Background thread
I need to transmit Strings to Main thread (there is GUI) to add them to javafx' TextFlow.
In the background thread's run(), reader waits strings from JSch channel. On new stings it must transmit them to main thread. So main thread can't wait data…

Neka
- 1,574
- 4
- 22
- 36
0
votes
0 answers
How to use TextFlow
I am running netbeans 8.1 and scene builder 2.0 with javaFX 8.0. I have just started messing around with the TextFlow container recently. In my program, I have wrapped a textArea inside the TextFlow container, but I cannot figure out how to use my…

CodingAddict
- 171
- 3
- 6
0
votes
1 answer
How to add a force line-break in a draw2d TextFlow
How do I add a forced line-break within a draw2d TextFlow figure.
I build a IFigure by adding several different objects. Amongst other things I add a FlowPage containing a TextFlow. But I could not find an option to force line-breaks at specific…

Daniel
- 3,541
- 3
- 33
- 46
0
votes
1 answer
Is WebView "embeddable" in TextFlow?
It says on the OpenJDK samples for TextFlow that it can have arbitrary Nodes as children, e.g. Button. I was wondering if WebView can be a possible child? If so, then I must be doing something wrong. When I add it to the TextFlow, the WebView just…

Adam Law
- 542
- 1
- 7
- 21
0
votes
0 answers
Cant add text to javaFX textFlow - How to use task correctly?
EDIT:
I dont understand how Im changing the UI from the Task, I using a method form the controller to change the UI, how can I do this ?
Please try using my examples and tell me if I need to add some Info
I'm trying to add text from a Task to a…

Gurman Eduard
- 73
- 1
- 1
- 8