KeyListeners on buttons?

Hardly standard practice. You ought to use what they call "high-level" listeners on buttons, eg ActionListeners.
If you are still planning to use a KeyListener, you have to make sure it can receive the focus, add a KeyListener to it, then get a KeyEvent and get the (int) type of key from that KeyEvent, then if it is the type you want, set off the action.
Before you do that, try your app again, and instead of an enter key, try the space bar.
CR
[edit]I trust you have read about KeyListeners in
the Java Tutorial?[/edit]
[ August 16, 2006: Message edited by: Campbell Ritchie ]