This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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="" 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:
It's not a secret anymore!