Trap a clipboard copy event

B

Bobby

Hi all -

I am developing an application, which has to trap the (Ctrl+C)
event and send the text to another application, I know how to get the
contents from the clipboard and set the contents to the clipboard.

I want how to capture the (Ctrl+C) event.

Thanks in advance.
dwurity
 
R

Roland

Hi all -

I am developing an application, which has to trap the (Ctrl+C)
event and send the text to another application, I know how to get the
contents from the clipboard and set the contents to the clipboard.

I want how to capture the (Ctrl+C) event.

Thanks in advance.
dwurity
You can add a FlavorListener to the Clipboard
<http://java.sun.com/j2se/1.5.0/docs...istener(java.awt.datatransfer.FlavorListener)>.
However this method is not available before Java 1.5.0.

--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top