Simply you can put you text in a jtextarea and use the write api for the jtextarea to save the text but if you are using a jtextpane then you can use the
object stream or rtf kit to read and write. Check out their invidual api's for details.
Try to yahoo for them as there are a lot of different of stream format of doing things.
ps. Don't foget to answer the thread on the bottom of my signature