The list of methods to do Swing ActionMap are organized into topic(s).
void
addComponentAction(final JComponent component, final Action action) Adds a component action.
final InputMap imap = component
.getInputMap(component.isFocusable() ? JComponent.WHEN_FOCUSED : JComponent.WHEN_IN_FOCUSED_WINDOW);
final ActionMap amap = component.getActionMap();
final KeyStroke ks = (KeyStroke) action.getValue(Action.ACCELERATOR_KEY);
imap.put(ks, action.getValue(Action.NAME));
amap.put(action.getValue(Action.NAME), action);
void
attachAccelerator(Action action, JComponent component) attach Accelerator
KeyStroke stroke = (KeyStroke) action.getValue(Action.ACCELERATOR_KEY);
String name = (String) action.getValue(Action.NAME);
component.getInputMap(JComponent.WHEN_FOCUSED).put(stroke, name);
component.getActionMap().put(name, action);
addStrokeToName(action);
void
checkActions(JComponent aComponent) check Actions
ActionMap am = aComponent.getActionMap();
for (Object key : am.allKeys()) {
Action action = am.get(key);
if (action != null) {
action.setEnabled(action.isEnabled());
ActionMap
cloneActionMap(ActionMap original) clone Action Map
ActionMap map = new ActionMap();
Object[] keys = original.keys();
if (keys != null) {
for (Object key : keys) {
map.put(key, original.get(key));
return map;
...