File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Action firing by enter key
Joined: Jun 10, 2010
Sep 07, 2010 05:20:06
is there any idea to make focus component(button/radiobutton/checkbox/etc) fires there respective action method in
when enter is pressed.
Joined: Oct 25, 2008
Sep 07, 2010 05:57:17
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.
I agree. Here's the link:
subject: Action firing by enter key
TextArea and ActionEvent
ActionEvent for Textfield
Controlling Enter Key-Triggered Submit Behavior
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015