2013-09-29 59 views

回答

4

您必須註銷鍵綁定。

例如:

tabComponent.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("LEFT"), "none"); 
tabComponent.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("RIGHT"), "none"); 

你可能想看看這個How to use KeyBindings