How can I write out an rtf file from the RTFEditorKit.

Sandip Chitale

Use the RTFEditorKit's write method -

http://java.sun.com/products/jdk/1.2/docs/api/javax/swing/text/rtf/RTFEditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)

It is quite possible though that it does not work. I think the StylePad example that comes with Swing 1.1.1 or J2SE demo/jfc directory uses RTF.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact