JButton (Action action) { JButton button = super.createJButtonForAction(action); Object value = action.getValue(REQUEST_FOCUS_ENABLED); if (value instanceof Boolean) button.setRequestFocusEnabled(((Boolean)value).booleanValue()); return button; }