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
coding for response to enter button on keyboard
Alex Rugav
Greenhorn
Posts: 19
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
for example, a log on screen, how do you make the logon button respond to the enter button on the keyboard?
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In what context? Swing or a web page?
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
Jeff Albertson
Ranch Hand
Posts: 1780
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have on my mindreader's turban today (with the big ruby on it) and I'm picking up cosmic vibrations that you are using Swing:
yourFrame.getRootPane().setDefaultButton(yourButton);
There is no emoticon for what I am feeling!
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Enable ENTER button in swing application
Cleaning keyboards
help me with the installation process
How to set Default button in Swing
hitting the enter on the keyBoard should default to "YES" button on the html/jsp page
More...