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 12904 - Add "Default Button" property setter for JRootPane descendents
Summary: Add "Default Button" property setter for JRootPane descendents
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker with 2 votes (vote)
Assignee: issues@guibuilder
: 13864 (view as bug list)
Depends on:
Reported: 2001-06-15 19:22 UTC by dfields
Modified: 2005-05-16 18:12 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description dfields 2001-06-15 19:22:11 UTC
From my post to nbusers:

> In any event, in my forms with a "default button," I end up doing the
> following in the constructor:
>          initComponents();
>          getRootPane().setDefaultButton(connectButton);
> There's GOT to be a way to tell NetBeans that this button is the default,
> and to put it into the initComponents. I haven't found it, though, nor in
> the manual.

you couldn't find it because there's nothing like that. This is a rather special thing (out of general JavaBeans concept) we didn't
take into account...  But it could be probably implemented (as a "synhetic" property of forms based on JRootPane). Please file an
enhancement request at

Comment 1 Tomas Pavek 2001-07-24 09:34:35 UTC
*** Issue 13864 has been marked as a duplicate of this issue. ***
Comment 2 Jan Chalupa 2001-11-27 12:38:23 UTC
Target milestone -> 3.3.1.
Comment 3 Marek Grummich 2002-07-22 09:57:41 UTC
Set target milestone to TBD
Comment 4 Marek Grummich 2002-07-22 10:01:11 UTC
Set target milestone to TBD
Comment 5 Tomas Pavek 2005-05-16 18:12:46 UTC
This would be really nice to have implemented. But no concrete plan yet.