On Jul 18, 2013 12:13 AM, "Ajay Bhat" <a.ajay.b...@gmail.com> wrote: > > Hi, > > I'm using Pivot API for GUI application. I'd like to know how I can display some text in a text area being highlighted, by basically being selected when I use a ActionListener. >
As a follow up to this question I'd also like to know how to highlight text in a label > Eg: Entered text is: > > The quick brown fox jumps over the lazy dog. > > And I want to highlight the word 'quick' in the text area by having it selected on clicking some button. How do I do it? > Let's say I have the above sentence in a label and I need to highlight 'brown' by say changing color of the word to brown. I have the offset of the beginning of the word. How to do it? > Thanks, > Ajay