Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6885
| From | wee <rbulseco@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | event listener |
| Date | 2011-08-08 17:17 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <2e38eb6a-a835-4fdf-bebe-5fc2b4f17333@m4g2000pri.googlegroups.com> (permalink) |
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..
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
event listener wee <rbulseco@gmail.com> - 2011-08-08 17:17 -0700 Re: event listener "John B. Matthews" <nospam@nospam.invalid> - 2011-08-09 10:38 -0400
csiph-web