pleasure
asked on
How to hit a button using Enter instead of space bar?
hi experts,
Normally we hit a button by click on it using mouse, besides we can also press space bar when the focus is on the button to hit the button.
What i want to ask is.. can i allow my user to use Enter to hit the button instead of using space bar??
thanks
Normally we hit a button by click on it using mouse, besides we can also press space bar when the focus is on the button to hit the button.
What i want to ask is.. can i allow my user to use Enter to hit the button instead of using space bar??
thanks
yes, you can, just wait a little
ASKER
thanks a lot Ovi...muaaakkkkkkkkkkkkkss ssssssssss sssssss... .:D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi Ovi,
thanks for the response.. i will look into the code and get back to you later...thanks again...
thanks for the response.. i will look into the code and get back to you later...thanks again...
ok, is working anyway ...
Or
frame.getRootPane().setDef aultButton (someButto n);
frame.getRootPane().setDef
ASKER
yes..it's work..thanks Ovi...
I'm glad to hear that.