After re-reading the article about keybindings at the swing connection I
have to partly correct my own post:

I wrote:

> If you don't allow edit's in the table then you can simply
> remove the registration from the
> inputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); note that you actually
> have to remove it from the parent map, that is
> table.getInputMap(ancesterCondition).getParent().remove(escKeyStroke).

That's not recommended because parent is (always?) shared among tables.
The recommended procedure to "remove" a keybinding is to bind it to a
no-action like:

inputMap.put(escKeyStroke, "none")

Greetings
Jeanette

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to