Uses of Class javax.swing.ActionMap (Java Platform SE 8 )
Date: 2026-01-21

## Uses of Class
javax.swing.ActionMap

- Packages that use ActionMap
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.

- - ### Uses of ActionMap in javax.swing

    Methods in javax.swing that return ActionMap
    Modifier and Type | Method and Description
    --- | ---
    `ActionMap` | JComponent.`getActionMap()` Returns the `ActionMap` used to determine what `Action` to fire for particular `KeyStroke` binding.
    `ActionMap` | ActionMap.`getParent()` Returns this `ActionMap`'s parent.
    `static ActionMap` | SwingUtilities.`getUIActionMap(JComponent component)` Returns the ActionMap provided by the UI in component `component`.

    Methods in javax.swing with parameters of type ActionMap
    Modifier and Type | Method and Description
    --- | ---
    `static void` | SwingUtilities.`replaceUIActionMap(JComponent component, ActionMap uiActionMap)` Convenience method to change the UI ActionMap for `component` to `uiActionMap`.
    `void` | JComponent.`setActionMap(ActionMap am)` Sets the `ActionMap` to `am`.
    `void` | ActionMap.`setParent(ActionMap map)` Sets this `ActionMap`'s parent.

  - ### Uses of ActionMap in javax.swing.plaf

    Subclasses of ActionMap in javax.swing.plaf
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ActionMapUIResource` A subclass of javax.swing.ActionMap that implements UIResource.

  - ### Uses of ActionMap in javax.swing.plaf.basic

    Methods in javax.swing.plaf.basic that return ActionMap
    Modifier and Type | Method and Description
    --- | ---
    `protected ActionMap` | BasicLookAndFeel.`getAudioActionMap()` Returns an `ActionMap` containing the audio actions for this look and feel.

  - ### Uses of ActionMap in javax.swing.plaf.metal

    Methods in javax.swing.plaf.metal that return ActionMap
    Modifier and Type | Method and Description
    --- | ---
    `protected ActionMap` | MetalFileChooserUI.`createActionMap()`
    `protected ActionMap` | MetalFileChooserUI.`getActionMap()`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.