File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Action Map question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Action Map question" Watch "Action Map question" New topic

Action Map question

Peter Simard
Ranch Hand

Joined: Oct 31, 2001
Posts: 54
When defining an ActionMap, are we defining one behavior common, i.e. available, to one or
more actions/keystrokes?
If I define :

Am I saying perform the actionPerformed WHENEVER the enter key is pressed?
I assume we have to addActionListener(enterKeyAction) for any component
we want to execute the specified action.
I perused this article:
but it's a bit early in the morning at the moment to get my head around!
[ October 14, 2002: Message edited by: Peter Simard ]
[ October 14, 2002: Message edited by: Peter Simard ]

PAS<br /><br />2b || !2b
I agree. Here's the link:
subject: Action Map question
Similar Threads
how to redirect backspace key to some other function
How to enable CTRL+C to perform action instead of coping to clipboard?
Key Bindings
keyboard shortcuts to move between tabs inJTabbedPane
enter key events in a page containing 2 or more than 2 buttons