List of usage examples for javax.swing ActionMap put
public void put(Object key, Action action)
key
to action
. From source file:wsattacker.plugin.intelligentdos.ui.dialog.ConfigureCommonParams_NB.java
private void configureKeyBinding() { InputMap inputMap = commonParamTable.getInputMap(JTable.WHEN_FOCUSED); ActionMap actionMap = commonParamTable.getActionMap(); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), DELETE); actionMap.put(DELETE, new AbstractAction() { @Override/*from ww w.ja va2 s.co m*/ public void actionPerformed(ActionEvent evt) { removeRow(); } }); }