I am new to JavaFX. I want to make the text of Label with different colors.
For Example:
Label : "sourav ganguly"
Ouput: sourav(as red color) ganguly(as blue color)
I tried but i didn't get it. Please can anyone help me.
Or you could possibly use setStyle for Label and set the color you need.
label.setStyle("-fx-color: red");