Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying multiple colored text in a textarea

Status
Not open for further replies.

jeevan

Programmer
Apr 11, 2001
9
IN
hi all,
is there any facility to display multiple colored text in a textarea .the objective is

sdsdsdskdlksaldlsa;ds//display this in blue
gsdfgsfdsagdhsadhsa//display this in red

is there any option please reply



 
TextArea doesn't not support this. I believe that JTextArea does support html tags and with them you could use the color tags to specify colors for different lines. The tag that you would use is:

<font color = blue>this text will be blue</font>



[sig]<p>Troy Williams B.Eng.<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top