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.