I've tried all those and it doesn't write a whole document.
FileWriter(document) doesn't work.
Is there something I need to do to the Document of a JTextComponent to make it saveable. Do I need to convert the entire
doc to a
string and then write each string or can I somehow write the doc as a whole?
this is the document i'm talking about.
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/Document.html