Thank you.. if u dont mind can u please clear my following question..
In JTextarea,I need to change the font colour for particular word or first word in that textarea.How is that possible? if i use as textarae.setFon t() means whole text in that textarea gets change rite?
Thank you.. if u dont mind can u please clear my following question..
In JTextarea,I need to change the font colour for particular word or first word in that textarea.How is that possible? if i use as textarae.setFon t() means whole text in that textarea gets change rite?
-Thanks & Regards,
Hamsa
Yep right; a JTextArea is a simple widget: it uses one back/foreground colour
for everything. As was suggested already you need a component that can handle
StyledDocuments , in particular an HTML document. Read the API documentation.
Comment