In the app below the 'enter' key always seems to invoke the option that is the
'initialValue' in the dialog, ie, the button that is initially selected. This only seems to
work for the metal plaf. The option designated as the 'initialValue' in the constructor seems
to function like a default command button for the dialog. See paragraph four and Table 8
under the 'Keyboard Navigation and Activation' section of
page 6 in the
'
Java Look and Feel Guidelines'. Also the 'Default Command Buttons' section on
page 8.
ps — try using the 'spacebar' to activate the buttons instead of the 'enter' key.
[ August 19, 2005: Message edited by: Craig Wood ]