Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to send formatted text like in chat programes

Reply
Thread Tools

how to send formatted text like in chat programes

 
 
islamelnaggar
Guest
Posts: n/a
 
      03-14-2008
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
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      03-14-2008
On Mar 14, 10:50*pm, islamelnaggar <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Lionel van den Berg
Guest
Posts: n/a
 
      03-14-2008
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!
 
Reply With Quote
 
Mark Space
Guest
Posts: n/a
 
      03-14-2008
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/>
 
Reply With Quote
 
islamelnaggar
Guest
Posts: n/a
 
      03-17-2008
On Mar 14, 5:59 pm, Mark Space <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Watch online TV and listen radio programes stoyan C Programming 0 03-03-2007 08:28 PM



Advertisments