Monday, May 5, 2003 05:04 AM
Your question is a bit vauge, so I have to make a few assumptions.
If you have a JFrame
or a JDialog
and would like to set one of the button in its
conent pane as the default (hitting enter is the same as clicking the button)
you can try the following:
JRootPane rootPane = frame.getRootPane ();