Forums Register Login

Have multicolor text in the same textarea(urgent)

+Pie Number of slices to send: Send
Hai, I'm very much interested to have atlest two different coloured text in the same textarea.For eg. in chat pages we can see that the message we type is preceeded by our nickname in one color & the nickname of the sender(i.e with whom we chat) appears in a different color in the same textarea.How is it possible?Please help me out to do this as soon as possible.
Thank You
+Pie Number of slices to send: Send
TextArea nor JTextArea will work to show multiple colors.
You'll have to use JTextPane in order to accomplish this.
Also refer to the "Style" class and other refrenced classes.
Whose rules are you playing by? This tiny ad doesn't respect those rules:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3108 times.
Similar Threads
Transfer files and message over a single socket at the same time?
TextArea
Need to develop two threads which uses same runnable reference
Change the background color of TextArea
JTextArea - more than one color
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 10, 2024 15:23:26.