Vedrana Veric

Greenhorn
+ Follow
since Oct 24, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vedrana Veric

Do you maybe have some example how this should be set?
18 years ago
Yes it is JTable InputMap/ActionMap. InputMap is WHEN_IN_FOCUSED_WINDOW.

InputMap compImap = component.getInputMapJComponent.WHEN_IN_FOCUSED_WINDOW);

With WHEN_ANCESTOR_OF_FOCUSED_COMPONENT also doesn't work.
18 years ago
Keystroke(KeyEvent.VK_C, KeyEvent.CTRL_MASK) is asigned to copyAction,
copyAction is added to ActionMap, map is bound on table on which I want to
perform copy action (and other actions too) and ActionListener is set. This process is implemented long time ago(not by me) and it works for everything but this 3 specific shortcuts.
18 years ago
I didn't found solution there, I don't want to remove key binding
but to use ctrl-c for specific copy action. I have in popup window defined copy action and ctrl-c is binded to that action. If I open popup
and then press ctrl-c my copy action is triggered, but if I press ctrl-c without opening popup than my action isn't catched, everything is
copied to clipboard.
18 years ago
Does someone know how to disable that CTRL+C performs normal
copy to clipboard. I have an application and on CTRL+C I want to
perform some defined action. If I bind some other keystroke
to my action it works, but with CTRL+C, CTRL+X and CTRL+V
I have normal windows copy/cut/paste behaviour.
18 years ago