This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I am working on a simple GUI application. I want the tab key to generate an actionPerformed() event for my ActionListener. Also, I want the Enter key to perform the same action as the Tab key; that is, move focus to the next field. In other words, I want these two keys to be synonymous is their behaviour. Can you point me to a good example of how to do that?