Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
SET A BUTTON AS "DEFAULT"
RAY CARNES
Greenhorn
Posts: 11
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do I make a button the "default" button - the one a user can click by pressing the Enter key?
Tom P
Ranch Hand
Posts: 88
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You have to catch keystrokes and look for the enter key. When the enter key is pressed, trigger the button.
RAY CARNES
Greenhorn
Posts: 11
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Many thanks!
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JDialog: How to set focus on second JButton?
how to delete multiple browse
ENTER must activate the default button when pressed on a JTable
EnterKey to switch panels
Controlling Enter Key-Triggered Submit Behavior
More...