Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CHALLENGE - RTFEditorKit - CHALLENGE

 
Nicolas Brasseur
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Nicolas
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not possible at this time... read the bug report on this problem on Sun's site...
 
Nicolas Brasseur
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info,
any idea of how to copy RTF text to the clipboard ?
Nicolas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic