Re: Highlighted text detection

[email protected] Fri, 27 May 2005 13:02:01 -0400
Newsgroups gmane.comp.java.linux.general
Message-ID <[email protected]>
On Fri, May 27, 2005 at 09:47:51AM -0600, Mike Adolf wrote:
> If this is the wrong list for this post, let me know.
> 
> I have a form having a mix of JTables, JTextAreas, and JTextFields.  I want to 
> know when a user highlightes/selectes text in any of them (to enable copy 
> button).  To select text a user can (click then shift click) or (double 
> click) or (click and drag).  Isn't there some way to detect highlighting with 
> out multiple listeners?

You could define one listener that implements all the relevant listener
interfaces.

Nathan

> 
> Mike
> 
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
> 
> 
> 


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]