Originally posted by daman sidhu:
Hi friends,
I have made a chat application for the net using sockets and it has all the features like pms and rooms etc, but i am using a text area for posting the meesages on the client, now in most sites we have say the private meesages in red and rest in black and so on and also we have images whihc we can put there, what shall i use for that? because if i try to change color of text area the whole color of page will change by setForeground() not that of a single line, anyone can advice me? ill be thankful
Originally posted by daman sidhu:
Hi friends,
I have made a chat application for the net using sockets and it has all the features like pms and rooms etc, but i am using a text area for posting the meesages on the client, now in most sites we have say the private meesages in red and rest in black and so on and also we have images whihc we can put there, what shall i use for that? because if i try to change color of text area the whole color of page will change by setForeground() not that of a single line, anyone can advice me? ill be thankful
Originally posted by deekasha gunwant:
Hi daman,
you will have to use JTextPane for this purpose. because JTextarea does not support multiple colors.
for details u can go through the tutorial for JTextpane on sun's site.
regards
deekasha
hi deeksha
thanks for repying but do IE and netscape support swings? or will i have to send the swings.jar in the archive of applet? i will try that textpane thing surely though thanks again.
Regards
Daman
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|