Reputation: 1041
I'm trying to use Ctrl+C
, Ctrl+X
and Ctrl+V
as Swing JMenu
shortcut using NetBeans Visual Designer in my app. All of other shortcuts work except these.
What's the problem?
Upvotes: 0
Views: 851
Reputation: 324207
Those Key Bindings are used by default for text components. So if focus is on a text component they will invoke the default Action for the text component.
If you need more help then post your SSCCE that demonstrates the problem.
Upvotes: 1
Reputation: 18662
It is pretty hard to guess what the problem is from your description, but let me guess: do you happen to have JTextArea on the same JFrame? It has some neat property called actionMap (setActionMap(), getActionMap()), which probably has these Accelerators registered.
Upvotes: 0