Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I locate and modify this character?  RSS feed

 
Tris Rabar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello..
I've stumbled upon a little problem. I'm using a JTextPane to display some data, which I put on the pane from an array. The array contains strings of data. I have to modify certain characters in a given string, which I do using a StringBuffer, write this back to its old position in the array, and then place back onto the pane. All this is fine, works great. However, I must indicate the characters that were modified on the string (on the JTextPane), either being highlighted or colored. How can I do this, given that the data is written back from the array, as strings?
Any help would be appreciated.
Thanks a lot!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!