Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help in saving the diff colored text in JTextPane in diff format  RSS feed

 
Chris Jebaraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JTextPane to display a portion of the string in different color, ie in blue. Now the problem is i have save the colored text alone in one format along with the whole text. Lets say "This is the <blue> example </blue> text" is my whole text, i want to save this as "This is the {example} text". Basically the blue colored text has to to formatted to {..} format. Would any one please help me out in this. i am struck up here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!