I decided to torment javaFX , but I ran into the problem of displaying information.
The best way out I found using the TextArea class and not allowing data to be entered into it.
But the network did not find a single answer on how you can implement this idea.

    2 answers 2

    How to find the answer

    Let's see the documentation, the first link for javaFX textarea google

    https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TextArea.html

    paragraph

    Properties inherited from class javafx.scene.control.TextInputControl anchor, caretposition, editable , font, length, promptText, redoable, selectedText, selection, textFormatter, text, undoable

    click on editable (editable from English)

    We learn that the class has an editable field that indicates whether the user can edit the text.

    public final BooleanProperty editableProperty

    Indicates whether this TextInputControl can be edited by the user.

    See Also: isEditable (), setEditable (boolean)

    And most importantly, we find the setEditable (boolean) method through which you can set the value for this field.


    Actually the answer:

    textArea.setEditable(false); 

      Of course, not relevant, but you can go into SceneBuilder and uncheck Editable =)