I have a Form constructed dynamically, and the components added register keys they need to process actions. It have a JTable too, and when the JTable is focused, it is processing all the keys, so keys configured to trigger actions on the other components arent being executed. Can I configure the Jtable to only process the movement keys? e.g. arrows, home, end, pg up and down, etc?
Edit 1: The JFrame containing the other components is using this function to register de key bindings:
private void addActionListener(final int key_, final ActionListener al_){
getRootPane().registerKeyboardAction(al_,
KeyStroke.getKeyStroke(key_, 0),
JComponent.WHEN_IN_FOCUSED_WINDOW);
}
When the focus is in any component but the JTable, the registered keys triggers accordingly, but when the focus is in the JTable, the key appears to be "trapped" in the JTable
If this isnt yet enought, I will be doing a SSCCE and will edit again later.