I am new to JavaFX. I want to make the text of Label with different colors.
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.
Create a custom cellfactory for your ListView and have it generate cells containing a FlowPane with different Text instances, each with different styles. I created a sample to demonstrate this method.