how to send formatted text like in chat programes

Discussion in 'Java' started by islamelnaggar, Mar 14, 2008.

  1. 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
    islamelnaggar, Mar 14, 2008
    #1
    1. Advertising

  2. On Mar 14, 10:50 pm, islamelnaggar <> 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
    Andrew Thompson, Mar 14, 2008
    #2
    1. Advertising

  3. 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!
    Lionel van den Berg, Mar 14, 2008
    #3
  4. islamelnaggar

    Mark Space Guest

    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/>
    Mark Space, Mar 14, 2008
    #4
  5. On Mar 14, 5:59 pm, Mark Space <> 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
    islamelnaggar, Mar 17, 2008
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    2,176
  2. stoyan

    Watch online TV and listen radio programes

    stoyan, Mar 3, 2007, in forum: C Programming
    Replies:
    0
    Views:
    311
    stoyan
    Mar 3, 2007
  3. dancer

    Send formatted email

    dancer, May 9, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    290
    dancer
    May 9, 2007
  4. Neal Becker
    Replies:
    1
    Views:
    437
    Mike Driscoll
    May 1, 2008
  5. Replies:
    3
    Views:
    170
    Jeremy McAnally
    Jan 31, 2008
Loading...

Share This Page