Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple selection in jtextcomponent  RSS feed

greg leminou
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!