how to send formatted text like in chat programes  
Author Message
islamelnaggar





PostPosted: 2008-3-14 19:50:00 Top

java-programmer, how to send formatted text like in chat programes 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
 
Andrew Thompson





PostPosted: 2008-3-14 20:04:00 Top

java-programmer >> how to send formatted text like in chat programes On Mar 14, 10:50爌m, islamelnaggar <email***@***.com> wrote:
> ...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)
...

Andrew T.
PhySci.org
 
Lionel van den Berg





PostPosted: 2008-3-14 21:20:00 Top

java-programmer >> how to send formatted text like in chat programes On Fri, 14 Mar 2008 04:50:22 -0700, islamelnaggar wrote:

> 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!
 
 
Mark Space





PostPosted: 2008-3-15 0:00:00 Top

java-programmer >> how to send formatted text like in chat programes islamelnaggar wrote:
> 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/>
 
 
islamelnaggar





PostPosted: 2008-3-17 16:13:00 Top

java-programmer >> how to send formatted text like in chat programes On Mar 14, 5:59 pm, Mark Space <email***@***.com> wrote:
> islamelnaggar wrote:
> > 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/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