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 Head First Android this week in the Android 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
jQuery in Action, 3rd edition