Redian新闻
>
Tabs defined by user can't be saved
avatar
Tabs defined by user can't be saved# Java - 爪哇娇娃
m*e
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
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。