jQuery in Action, 3rd edition
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
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 />peter@panvox.net<br />2b || !2b
I agree. Here's the link: http://aspose.com/file-tools
subject: Action Map question
It's not a secret anymore!