• Post Reply Bookmark Topic Watch Topic
  • New Topic

modify StyledEditorKit's text without losing text formatting

 
Howard Huang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i modify text in a StyledEditorKit (RTFEditorKit in my case) without losing the text's format/style?
This is my code right now. Whenever i modify the text, the modified part reverts back to the default font, size and style.


FileIO.fio.ep is a JEditorsPane with the RTFEditorKit installed
FileIO.fio.rtfek is the RTFEditorKit
[ April 28, 2008: Message edited by: Howard Huang ]
 
Howard Huang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution, here it is for any1 else that might need it

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!