how to send formatted text like in chat programes

I

islamelnaggar

hello ,
i would like rto ask how to send formatted text, like italic , font
size, blah blah
from one computer clientt o client like chat programes , i l know to
send plain text, i their ways to send formatted text , i think may be
html format but i need more solution please...

islam
 
A

Andrew Thompson

...i think may be
html format but i need more solution please...

RTF
Word format
PostScript format
PDF
usenet 'format' (only provides
*bold* /italic/ and _underline_ )
custom format (you design it)
...
 
L

Lionel van den Berg

hello ,
i would like rto ask how to send formatted text, like italic , font
size, blah blah
from one computer clientt o client like chat programes , i l know to
send plain text, i their ways to send formatted text , i think may be
html format but i need more solution please...

Most swing components support html, so it should be pretty easy!
 
M

Mark Space

islamelnaggar said:
hello ,
i would like rto ask how to send formatted text, like italic , font
size, blah blah
from one computer clientt o client like chat programes , i l know to
send plain text, i their ways to send formatted text , i think may be
html format but i need more solution please...

islam

HTML or XML would likely be the easiest and most portable.

You might want to design a class that provides the features you want
(like font style, weight, size, etc.) then serialize that with an
XmlEncoder. Trying to use a class for serialization that wasn't set
aside especially for that purpose can impose sever limitations on your code.

<http://java.sun.com/developer/technicalArticles/Programming/serialization/>
 
I

islamelnaggar

HTML or XML would likely be the easiest and most portable.

You might want to design a class that provides the features you want
(like font style, weight, size, etc.) then serialize that with an
XmlEncoder. Trying to use a class for serialization that wasn't set
aside especially for that purpose can impose sever limitations on your code.

<http://java.sun.com/developer/technicalArticles/Programming/serializa...>

thank you for u reply , but it's for chat application , so i will
serialize ,then unserialize data again and send over network , i think
it will be heavy-weight ,

any anther suggestion !

Thanks
islam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top