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 / October 2007

Tip: Looking for answers? Try searching our database.

Rich text

Thread view: 
Peter K - 16 Oct 2007 10:50 GMT
Hi

I would like some pointers to representing a "rich text" document as an
object.

Does java have inbuilt classes for rich text representation?

I am not building any gui code, but I am investigating possibilities for
transporting complex data (text + inline images) over a web-service. The
data is read from a Notes database, and I have it on good authority that
Notes can supply data in some sort of rich text format (therefore I am
looking at how to represent rich text as a java object).

So if anyone also has more info on Notes, or generally on good ways of
representing and transporting text and related images via a webservice I
would be grateful.

Thanks,
Peter
Steve W. Jackson - 16 Oct 2007 15:26 GMT
> Hi
>
[quoted text clipped - 15 lines]
> Thanks,
> Peter

Java has the javax.swing.text.rtf.RTFEditorKit which allows editing of
RTF (Rich Text Format) documents.  But it's woefully out of date, unless
they've done some serious work in Java 6 that I'm not yet using.  So if
you were working on a GUI for editing and manipulating RTF, you'd find
that many newer features (including tables and images) aren't supported
readily.

That said, RTF is little more than a markup language of sorts.  So if
you've got a rich text document already created that includes these
things, it should essentially just be a string of text including
content, the special markup features of RTF, etc.  And you should have
no difficulty passing such text over a Web Service.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



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.