Clipboard listener?
- From: jonck@xxxxxxxxxxxxxxx
- Date: 26 May 2005 13:40:35 -0700
Hi all,
I have implemented the basic cut/copy/paste functionality in my Swing
app, but I bumped into a problem that I have not been able to find an
answer to after extensive Googling and browsing the Swing API text.
The issue I'm having is how to know when the paste action should be
enabled and when it should not be. The cut and copy actions are easy,
since I can simply listen to whether a selection has been made or not.
But how do I know whether the paste action should be enabled? I was
expecting there to be something like a "ClipboardListener", but I was
unable to locate such a class or interface.
Could someone point me in the right direction how I should go about
this?
Thanks, Jonck
.
- Follow-Ups:
- Re: Clipboard listener?
- From: Alan Moore
- Re: Clipboard listener?
- Prev by Date: Re: applets won't appear
- Next by Date: Re: Activating anti-aliasing in Swing
- Previous by thread: Too much JMenu items in a JPopupMenu
- Next by thread: Re: Clipboard listener?
- Index(es):
Relevant Pages
|
|