dimanche 7 août 2016

How to specify the text color whenever i write a particular word in JTextPane

Is there a way to specify what color I want a particular text to have whenever i write it. lets say i set "Apple" to Color red. if I write "this Apple is good Apple" in any JTextPane, the word "apple" turns red.

Aucun commentaire:

Enregistrer un commentaire