Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Changing Color of a selectedtext  in TextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Changing Color of a selectedtext  in TextArea" Watch "Changing Color of a selectedtext  in TextArea" New topic
Author

Changing Color of a selectedtext in TextArea

Miguel Salmer´┐Żn
Greenhorn

Joined: Aug 23, 2005
Posts: 1
i want to change the color of the selected text in the text area.
i.e if the string is hello how are you is in blue color and i select hello and change the color to red the word hello should be in red and remaining string in blue
asheet anand
Ranch Hand

Joined: Nov 15, 2000
Posts: 83
hi,
do you want a multicoloured text area,which should display all the values in black but some values in red or green?
asheet
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Changing Color of a selectedtext in TextArea
 
Similar Threads
Is there any means to check the number of objects created when a java prgram runs.
regarding the textfield
two different styles in one string ?
How to give different foreground color for the same cell in JTable?
Exception