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.

Bug 13864 - JButtons should have additional options or properties to handle default behaviors
Summary: JButtons should have additional options or properties to handle default behav...
Status: CLOSED DUPLICATE of bug 12904
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-24 00:04 UTC by jhoffman
Modified: 2003-06-30 18:26 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jhoffman 2001-07-24 00:04:53 UTC
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.
Comment 1 Tomas Pavek 2001-07-24 09:34:36 UTC
Same as issue 12904.

*** This issue has been marked as a duplicate of 12904 ***
Comment 2 Jan Chalupa 2001-07-26 10:32:34 UTC
Re-assignint to 'form'.
Comment 3 Quality Engineering 2003-06-30 18:20:45 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-06-30 18:26:30 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.