How to append multicolor text in JavaFx textArea
问题 This is actually my first JavaFx desktop application. Within my application I want to display every event as a log in textarea. I have different log types , error,warning etc. I want to append all these logs inside a textarea with different colors. I tried like this(this is just a sample), // Method call is like this logText("Enter Ip address First"); // The method public void logText(String log){ log = ">> "+ log +"\n"; Text t = new Text(); t.setStyle("-fx-background-color: #DFF2BF;-fx-text