Possible Duplicate:
Highlighting strings in JavaFX TextArea
TextArea text = new TextArea();
text.setText("select from");
now i want to set the different colors for those two words in the text area how to do that can any one help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rich Text Support in controls will be provided by JavaFX8 – http://javafx-jira.kenai.com/browse/RT-23077.
Here is the CSS properties that are available for TextInputControl-http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#textinputcontrol
The possible workarounds are:-
http://docs.oracle.com/javafx/2/ui_controls/editor.htm