J
Jim
I've several buttons on a form and can tab through them. I want to be able
to invoke a button by hitting return when it has the focus.
However, the buttons don't respond. I get action events through a keyboard
nmemonic or a mouse click but not the enter key. What object gets the enter
key action?
All I can figure out is to put a focus handler on each button and set that
button as the RootPane default button when it gets the focus and unset it
when it looses focus. Any simpler way?
Thanks,
Jim
to invoke a button by hitting return when it has the focus.
However, the buttons don't respond. I get action events through a keyboard
nmemonic or a mouse click but not the enter key. What object gets the enter
key action?
All I can figure out is to put a focus handler on each button and set that
button as the RootPane default button when it gets the focus and unset it
when it looses focus. Any simpler way?
Thanks,
Jim