问题
How to edit text
in the TextArea
in `.fxml file as such I can use line breaks and tabs.
The Textarea is predefined and can not be edited.
Images to support
FXML File
The View
回答1:
If you want to directly use the text you can use something :
<TextArea prefHeight="200.0" prefWidth="200.0" text="${'Multi\nLine\tTab'}" />
In case you want to use in Scene Builder, you can switch to multi-line mode.
Switching to multi-line mode, scene builder will insert:
for \n
	 for \t
来源:https://stackoverflow.com/questions/28093508/javafx-fxml-file-textarea-line-break-and-tab-in-text