Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

how to send formatted text like in chat programes

Thread view: 
islamelnaggar - 14 Mar 2008 12:50 GMT
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 - 14 Mar 2008 13:03 GMT
> ...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 - 14 Mar 2008 14:19 GMT
> 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 - 14 Mar 2008 16:59 GMT
> hello ,
> i would like rto ask how to send formatted text, like italic , font
[quoted text clipped - 4 lines]
>
> 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 - 17 Mar 2008 09:12 GMT
> > hello ,
> > i would like rto ask how to send formatted text, like italic , font
[quoted text clipped - 13 lines]
>
> <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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.