> My problem is when I click in one of my edit fields which is in a panel
> of a JTabbedPane (so then I'm guessing that means the focus is there
> too), and then I hold down 'ctrl' + 'up' keys, the focus goes to my tab.
>
> Why does that happen?
Because that is how JTabbedPane binds the Ctrl-Up key.
> How would I make it so that 'ctrl' + 'up arrow' don't change the focus
> out of the current component I'm in (like the edit field).
Remove the Ctrl-Up key binding from the JTabbedPane's InputMap. I think
it would be in the WHEN_ANCESTOR_OF_FOCUSED_COMPONENT map.

Signature
Regards,
John McGrath
Kari Ikonen - 15 Feb 2005 20:13 GMT
>> How would I make it so that 'ctrl' + 'up arrow' don't change the focus
>> out of the current component I'm in (like the edit field).
>
> Remove the Ctrl-Up key binding from the JTabbedPane's InputMap. I think
> it would be in the WHEN_ANCESTOR_OF_FOCUSED_COMPONENT map.
In general, I would say that killing keyboard navigation support is bad
idea.
John McGrath - 16 Feb 2005 04:24 GMT
> In general, I would say that killing keyboard navigation support is bad
> idea.
I would agree, but he could have a good reason to do it in this case,
although I cannot think of what it might be. In any case, it is not
up to me to judge his reasons.

Signature
Regards,
John McGrath