wood burning stoves 2.0*
The moose likes Java in General and the fly likes Action firing by enter key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Action firing by enter key" Watch "Action firing by enter key" New topic
Author

Action firing by enter key

ujar abc
Greenhorn

Joined: Jun 10, 2010
Posts: 3
hi

is there any idea to make focus component(button/radiobutton/checkbox/etc) fires there respective action method in java when enter is pressed.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Invoke doClick on the components.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
jQuery in Action, 2nd edition
 
subject: Action firing by enter key