• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to deliver a massage in a chat program  RSS feed

 
Maged Roshdy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
in a chat program i used a JTextpane in either send area and recieve area
the question is how to deliver the massage with it's color ,font and size
if my message contains three words the first one colored with red and the second with black and the last with blue
when i try to send this message by sending sendArea's document
the sever recive this document and inserting it to the chat paper and sends the chat paper to all clients the message is recieved correctly but all the words with the red color .
thanks ,
Maged
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Convert text into HTML and send..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!