🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9010

Re: SelectedTextEvent with Java

#9010
From: John P. McGrath
Date: Wed, 31 May 2000 00:00
15 lines
995 bytes
On Sun, 28 May 2000 11:01:10 -0400, Pascal AUDANT wrote:

> I would like to know if there is one of the swing Text 
> Component (JTextPane, JTextArea ...) that supports some
> kind of SelectedTextEvent (an event that fires up as soon
> as the user highlight some of the text of the Component
> and that then give you the text that's been selected.)

Take a look at javax.swing.event.CaretEvent.  I have never used it, but 
it looks like what you are asking for.

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.139e8f5a3f2143fb989970@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <393134B6.113E5664@orbitek.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ebf7eb6886681662
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: SelectedTextEvent with Java
Date: 2000/05/31
Message-ID: <MPG.139e8f5a3f2143fb989970@forums.borland.com>
X-Deja-AN: 629362748
References: <393134B6.113E5664@orbitek.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing