Question about Applets
1 posts in topic
Flat View  Flat View

Posted By:   ratan_kumar
Posted On:   Saturday, November 23, 2002 12:59 AM

Can we set two colors for two words at a time in a text area?
"username: Ratan" is in a text area. Can wse display "username" in one color and "Ratan" in another color?

Re: Question about Applets

Posted By:   chris_moran  
Posted On:   Sunday, December 1, 2002 06:27 PM

I may be wrong, but I know that in 1.2 Swing you can use

html in Labels. I can't remember how to change colors

in html but I think it may be possible to do the same

using Labels, however I am not 100% sure. Give it a try.

All you have to do is set the text of the label as if

you were setting the text for any html.
About | Sitemap | Contact