wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes CHALLENGE - RTFEditorKit - CHALLENGE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "CHALLENGE - RTFEditorKit - CHALLENGE" Watch "CHALLENGE - RTFEditorKit - CHALLENGE" New topic


Nicolas Brasseur
Ranch Hand

Joined: Nov 09, 2001
Posts: 45
Hello Folks,
I have a real challenge ...
Can anyone show me a working code snippet that uses the write() method of the RTFEditorKit to obtain the selected part of a JTextPane in an OutputStream ...
Ready, Steady, Go

<a href="http://www.javablackbelt.com/?utm_source=javaranch&utm_medium=signature&utm_campaign=Forum%2BBuzz" target="_blank" rel="nofollow">BlackBeltFactory Communtiy</a> founder - Building better developers<br /><b>Free</b> courses and mock exams
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

This is not possible at this time... read the bug report on this problem on Sun's site...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nicolas Brasseur
Ranch Hand

Joined: Nov 09, 2001
Posts: 45
Thanks for the info,
any idea of how to copy RTF text to the clipboard ?
I agree. Here's the link: http://aspose.com/file-tools
Similar Threads
What is RichtextField(rtf) in Java n How to use it?
Reading RTF File in Java
RTFEditorKit - underline not working
BTK Is Arrested
How to save a "Styled" document