This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Action Map question" Watch "Action Map question" New topic
Author

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:
http://java.sun.com/products/jfc/tsc/special_report/kestrel/keybindings.html
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
 
Consider Paul's rocket mass heater.
 
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