Control for displaying multiline text?

前端 未结 5 1446
旧巷少年郎
旧巷少年郎 2020-12-29 02:00

I need to display a multiline, read-only text - which control can be used for that? It should only display the text, like a Label does, however Label does not support multil

5条回答
  •  死守一世寂寞
    2020-12-29 02:15

    If the text has \n (newline) characters in it, then the label will place wrap to a new line wherever the newline character is.

    It not works when you set text from FXML file as well as from visual FXML editor.

提交回复
热议问题