• Post Reply Bookmark Topic Watch Topic
  • New Topic

Set color within Text Area  RSS feed

 
Raajesh Chandran
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!
I want to set color inside the Text area.Every time i set the text within text area by setText method.How can I change the color of text dynamically.I don't want to use
setForground(Color.red)method.If any 1 knows.pls help me.
Regards,
chandran.....
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raajesh,
You are out of luck if you don't want to use the setForeground method. All the text inside a TextArea will be the same color. Since you are not really drawing it (the text area is!) you can only specify the components' foreground and background colors.
Sorry,
Manfred.
 
Raajesh Chandran
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!
Thanku very much for U'r information
Regards,
chandran
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!