File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Action firing by enter key
 
Similar Threads
FocusListener
TextArea and ActionEvent
ActionEvent for Textfield
assumptions
Controlling Enter Key-Triggered Submit Behavior