Work around
A less elegant solution, you can try adding a key listener to override the default behavior of "ctrl + a" by implementing the keyPressed method (note that the following example does not prohibit "ctrl + a" just adds support for "meta + a"):
@Override
public void keyPressed(final KeyEvent e) {
int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
if (e.getModifiers() == keyMask && e.getKeyCode() == KeyEvent.VK_A) {
this.selectAll();
e.consume();
}
}
A better alternative would be to use inputMaps (see uudashr comment below).
Thoughts on the root cause
, , ( LAF) , , " ", . , SubstanceLookAndFeel BasicLookAndFeel, . , BasicLookAndFeel, initComponentDefaults. UIDefaults LAF, getDefaults().
: