diff options
Diffstat (limited to 'libjava/classpath/javax/swing/InputMap.java')
-rw-r--r-- | libjava/classpath/javax/swing/InputMap.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libjava/classpath/javax/swing/InputMap.java b/libjava/classpath/javax/swing/InputMap.java index afc431d4836..a7ec38c4117 100644 --- a/libjava/classpath/javax/swing/InputMap.java +++ b/libjava/classpath/javax/swing/InputMap.java @@ -49,6 +49,14 @@ import java.util.Set; /** + * Maps {@link KeyStroke}s to arbitrary objects, usually Strings. This + * is used in combination with {@link ActionMap}s. + * + * If a component receives an input event, this is looked up in + * the component's <code>InputMap</code>. The result is an object which + * serves as a key to the components <code>ActionMap</code>. Finally + * the <code>Action</code> that is stored is executed. + * * @author Andrew Selkirk * @author Michael Koch * @@ -80,7 +88,7 @@ public class InputMap /** * Returns the binding for keystroke. * - * @param key the key of the enty + * @param keystroke the key of the enty * * @return the binding associated with keystroke may be null */ @@ -111,7 +119,7 @@ public class InputMap /** * Remove an entry from the <code>InputMap</code>. * - * @param key the key of the entry to remove + * @param keystroke the key of the entry to remove */ public void remove(KeyStroke keystroke) { |