receiving text without altering its original format.

hi,

In my chat program I wonder how to receive text sent by a user from one computer be received in another computer in the same format say with font face Impact, size 16, color red and all and in the same time displaying the text of the receiver in its own format say Comic Sans MS, 14, blue in the same area say in a JTextPane.

Any help would be appreciated

regards,

Jay

[403 byte] By [jaypangmia] at [2007-10-2 11:03:31]
# 1
youll have to send the font info along with the message itself...
takeshi10a at 2007-7-13 3:36:14 > top of Java-index,Core,Core APIs...
# 2
Actually, the O_P is a bit unclear, but I think the request is to be able to change the font but keep other formatting.
bschauwejavaa at 2007-7-13 3:36:14 > top of Java-index,Core,Core APIs...
# 3
yeah i didnt quite get it, but i though that he wanted something similar to other IMs, like use the font the writer was using when the message was sent...
takeshi10a at 2007-7-13 3:36:14 > top of Java-index,Core,Core APIs...
# 4
hi,Sorry I didn't get you...
jaypangmia at 2007-7-13 3:36:14 > top of Java-index,Core,Core APIs...
# 5
ya you are right. Use the font format the message sender has used and also the font format that is used by the receiver. I mean there will be messages with two font styles the one comming in its own format and the one sending that is your font style, in its own style.
jaypangmia at 2007-7-13 3:36:14 > top of Java-index,Core,Core APIs...