| 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ComponentInputMapA  ComponentInputMapis anInputMapassociated with a particularJComponent. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputMap | JComponent. getInputMap()Returns the  InputMapthat is used when the
 component has focus. | 
| InputMap | JComponent. getInputMap(int condition)Returns the  InputMapthat is used duringcondition. | 
| InputMap | InputMap. getParent()Gets this  InputMap's parent. | 
| static InputMap | SwingUtilities. getUIInputMap(JComponent component,
             int condition)Returns the InputMap provided by the UI for condition
  conditionin componentcomponent. | 
| static InputMap | LookAndFeel. makeInputMap(Object[] keys)Creates a  InputMapUIResourcefromkeys. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | LookAndFeel. loadKeyBindings(InputMap retMap,
               Object[] keys)Populates an  InputMapwith the specified bindings. | 
| static void | SwingUtilities. replaceUIInputMap(JComponent component,
                 int type,
                 InputMap uiInputMap)Convenience method to change the UI InputMap for  componenttouiInputMap. | 
| void | JComponent. setInputMap(int condition,
           InputMap map)Sets the  InputMapto use under the conditionconditiontomap. | 
| void | ComponentInputMap. setParent(InputMap map)Sets the parent, which must be a  ComponentInputMapassociated with the same component as thisComponentInputMap. | 
| void | InputMap. setParent(InputMap map)Sets this  InputMap's parent. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ComponentInputMapUIResourceA subclass of javax.swing.ComponentInputMap that implements UIResource. | 
| class  | InputMapUIResourceA subclass of javax.swing.InputMap that implements UIResource. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.