Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Action doNothing = new AbstractAction() {
- public void actionPerformed(ActionEvent e) {
- //do nothing
- }
- };
- component.getInputMap().put(KeyStroke.getKeyStroke("F2"),
- "doNothing");
- component.getActionMap().put("doNothing",
- doNothing);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement