Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Edit ODT Files

807591Oct 24 2007 — edited Jun 3 2008
Hi Friends,

I need some ideas here.

An ODT file, I noticed, is a zip file containing, amongst others, an xml file that one can get the text contents of the file from.

But that may not be of interest, or may it? Suppose a file exists and it contains the text

"We are all equal"

that I want to load into a JTextArea. Then I will edit that text to, say,

"Sote tuko sawa" (which is the Swahili translation for the phrase)

and on click saveButton, it should do the appropriate of swapping the two sentences (editing) and then saving the file, still in odt format.

Anyone?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2008
Added on Oct 24 2007
20 comments
2,112 views