Re: How to highlight text using Pivot?

2013-07-19 Thread Ajay Bhat
Hi Roger, On Fri, Jul 19, 2013 at 12:02 AM, Roger L. Whitcomb roger.whitc...@actian.com wrote: Well, to change the text on a Label, you just have to call label.setText(...);. The business logic in your first button just has to keep track of how many times it has been pushed (i.e., which

RE: How to highlight text using Pivot?

2013-07-19 Thread Roger L. Whitcomb
is to be useful in creating GUIs just as you are doing. Thanks, ~Roger Whitcomb -Original Message- From: Ajay Bhat [mailto:a.ajay.b...@gmail.com] Sent: Friday, July 19, 2013 6:22 AM To: dev@pivot.apache.org Subject: Re: How to highlight text using Pivot? Hi Roger, On Fri, Jul 19, 2013

Re: How to highlight text using Pivot?

2013-07-19 Thread Ajay Bhat
as you are doing. Thanks, ~Roger Whitcomb -Original Message- From: Ajay Bhat [mailto:a.ajay.b...@gmail.com] Sent: Friday, July 19, 2013 6:22 AM To: dev@pivot.apache.org Subject: Re: How to highlight text using Pivot? Hi Roger, On Fri, Jul 19, 2013 at 12:02 AM, Roger L

Re: How to highlight text using Pivot?

2013-07-18 Thread Ajay Bhat
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

RE: How to highlight text using Pivot?

2013-07-18 Thread Roger L. Whitcomb
[mailto:a.ajay.b...@gmail.com] Sent: Thursday, July 18, 2013 12:59 AM To: dev@pivot.apache.org Subject: Re: How to highlight text using Pivot? 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

Re: How to highlight text using Pivot?

2013-07-18 Thread Ajay Bhat
Hi Roger, On Thu, Jul 18, 2013 at 9:31 PM, Roger L. Whitcomb roger.whitc...@actian.com wrote: Hi Ajay,         Label doesn't have near the capability of a TextArea (or TextPane) as far as manipulation of its parts.  It is meant to be a single piece of text, all with the same attributes.  

How to highlight text using Pivot?

2013-07-17 Thread Ajay Bhat
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. Eg: Entered text is: The quick brown fox jumps over the lazy dog. And I want to highlight the word 'quick' in the

RE: How to highlight text using Pivot?

2013-07-17 Thread Roger L. Whitcomb
: Span span = new Span(start, end); textArea.setSelection(span); HTH, ~Roger Whitcomb -Original Message- From: Ajay Bhat [mailto:a.ajay.b...@gmail.com] Sent: Wednesday, July 17, 2013 11:44 AM To: dev@pivot.apache.org Subject: How to highlight text using Pivot? Hi, I'm

Re: How to highlight text using Pivot?

2013-07-17 Thread Ajay Bhat
...@gmail.com] Sent: Wednesday, July 17, 2013 11:44 AM To: dev@pivot.apache.org Subject: How to highlight text using Pivot? 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