我就是这样做的,而且行得通。尽管处理大量文本非常慢。
public void appendText(String str) { Platform.runLater(() -> textField.appendText(str));}和
@Overridepublic void initialize(URL location, ResourceBundle resources) { OutputStream out = new OutputStream() { @Override public void write(int b) throws IOException { appendText(String.valueOf((char) b)); } }; System.setOut(new PrintStream(out, true));}


