This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There should be a way to simply identify a button as the default button in a form so that pressing the "Enter" key will activate the button. Currently, there is only "setDefaultCapable" which identifies the button as one of a group of possible default buttons, but does not generate the code to actually make this the default button. Perhaps this option could be on the form (JPanel or JFrame) and would consist of a drop down list of all the JButtons on the form, so that a single one can be chosen as the default. Alternatively, this could be a True/False option on each JButton. If JButton1 is chosen as the default, then the value of the option on JButton2 and JButton3 would be automatically set to False. Similarly, there should be a way to specify that a particular button is the cancel button, and would respond to the "Esc" key.
Same as issue 12904. *** This issue has been marked as a duplicate of 12904 ***
Re-assignint to 'form'.
Resolved for 3.3.x or earlier, no new info since then -> closing.