Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jEdit display RTF

 
Amy Saari
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All

I'm stuck. In a swing app - I need to work with plain text files off the disk, but want users to be able to use RTF while they work with the file. Then, on the save to the disk, I have to convert the file back to plain text - it's okay that the RTF gets blown away - they don't care - the RTF is only for convenience while the file is displayed in the editor.

I got jEdit working in my swing app, but I don't seem to be able to tell it that the Content Type is rtf (I convert it to rtf when I read it in off the disk).

Anyone know how ?

Thanks for any help...
Amy
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about posting some SSCCE code? When you mean jEdit, do you mean jEdit?
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!