Originally posted by nemaroller
thanks dilinger, I found some other code too on the Sun Forums...

basically a one-line statement...
Code:
rootPane.setDefaultButton(button1);
Well, technically, that's not catching the keypress event, but if it's what you want, there you go.