• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to preserve a font style in a JEditorPane  RSS feed

 
Magno Ritzmann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, I'm working with styles in a JEditorPane, everything is working, but when I backboard in a previous word the next words catch the same style, how can I solve this problem? I just want to change the colors of some words and keep the others words in a default style

in the image bellow you can see my problem, the text "str2" after "string" shoud be black like "str1"


Uploaded with ImageShack.us


have any way to disable this style sharing?

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