Set up the Default and Cancel button
One of the things that bothers me most in many Swing apps I see is the lack of a Default key (reacting to Enter being pressed) and a Cancel key (reacting to ESC being pressed)in
I've tried searching google and there seem to be different opinions on how to implement this. Can anyone recommend the best way to do this?
Also, is there any standard way to put a thicker border around the button that is flagged as Default, just like all regular Windows applications do?