W
wee
hi,
i have a JButton object and i added an actionListener to it. it works
well with a mouse click, but if i use the enter key while the focus is
on the JButton, nothing happens. do i need to add a keypress listener
on top of the actionListener to the JButton so that it would work both
for a keypress and a mouse click? help on this query is greatly
appreciated.
thanks..
i have a JButton object and i added an actionListener to it. it works
well with a mouse click, but if i use the enter key while the focus is
on the JButton, nothing happens. do i need to add a keypress listener
on top of the actionListener to the JButton so that it would work both
for a keypress and a mouse click? help on this query is greatly
appreciated.
thanks..