Hi all. I have a JList inside a tabbed pane.
On my tabbed pane I have hot keys such that Ctrl-Page Up and Ctrl-Page Down change the tab. This works fine except when a JList has focus in the tab.
When I press Ctrl-Page Up or Page Down on the JList I don't want it do anything and I would like the tab to change as expected.
If I add this to my JList:
list.getInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, InputEvent.CTRL_DOWN_MASK), "none")
it stops my JList from reacting to the Ctrl-Page Down but it doesn't propergate it up to the tabbed pane.
Does anyone know how I can do this?
Thanks, Nick.