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

multiple selection in jtextcomponent  RSS feed

 
greg leminou
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I've got a little pb. I'm writing an application that is more or less a text editor.
I want to implement a "find word" functionality,
i know how to select a word matching a string in a jeditorpane ( with setCaretPosition and moveCaretPosition) but if i want to select in the same time all the words that match a given string, I don't know how to do it because with set... and move... you erase the previous selected word and select the new one.
How can I do it simply?
Best Regards, Greg
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!