File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes SET A BUTTON AS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "SET A BUTTON AS "DEFAULT"" Watch "SET A BUTTON AS "DEFAULT"" New topic
Author

SET A BUTTON AS "DEFAULT"

RAY CARNES
Greenhorn

Joined: May 02, 2000
Posts: 11
How do I make a button the "default" button - the one a user can click by pressing the Enter key?
Tom P
Ranch Hand

Joined: May 06, 2000
Posts: 88
You have to catch keystrokes and look for the enter key. When the enter key is pressed, trigger the button.
RAY CARNES
Greenhorn

Joined: May 02, 2000
Posts: 11
Many thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: SET A BUTTON AS "DEFAULT"