By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,704 Members | 1,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,704 IT Pros & Developers. It's quick & easy.

text in different colors in JTextArea

P: n/a
How to display a text fragment in different color or in a different font
then other part of text in JTextArea ??

thanks :)
May 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
domel wrote:
How to display a text fragment in different color or in a different font
then other part of text in JTextArea ??

thanks :)

You could use a JEditorPane. JEditorPane can interpret html. So, you
could insert<font color=\"color\"> tags to format the text as you like.

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
May 26 '06 #2

P: n/a
"domel" <do******@icpnet.pl> wrote in message
news:e5**********@opal.icpnet.pl...
How to display a text fragment in different color or in a different font


Crosspost, don't multipost:
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

- Oliver

May 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.