m******e 发帖数: 7 | 1 Hello everyone,
I write a text editor and add a ruler (the class Ruler from the link
http://java.sun.com/products/jfc/tsc/articles/text/tabs/ ) to my JTextPane.
Everything works well. The user can define tabs in different positions, and
the text can be aligned to the new defined tabs.
But as I use
RTFEditorKit.write(outputStream, the_doc_in_JTextPane, 0, doc.getLength())
to save the document as a .rtf file, all the user defined tabs are lost and
the default tabs are saved (that means all the tab |
|