This discussion is archived
0 Replies Latest reply: Aug 14, 2011 3:04 PM by 882292 RSS

Highlighting substrings in a TextBox

882292 Newbie
Currently Being Moderated
I can't seem to find anything on the web on how one might highlight a substring in a container such as a TextBox.
For example, suppose you want to provide a search for string capability and highlight occurrences in a TextBox.
The closest I found was to use JLabel with the html string constructor.

This shouldn't be such an unusual application.

Any suggestions?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points