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 37110 - Search Results window has a default button
Summary: Search Results window has a default button
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P4 blocker (vote)
Assignee: issues@utilities
URL:
Keywords: UI
Depends on: 37083 37296
Blocks:
  Show dependency tree
 
Reported: 2003-11-09 12:12 UTC by Marian Petras
Modified: 2004-01-09 18:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2003-11-09 12:12:35 UTC
In the Search Results window, button "Show All
Details" is marked as the default button of the
window. There should be no button marked as the
default button.
Comment 1 Marian Petras 2003-11-09 12:28:18 UTC
The code in the Utilities module states that button "Close" should be
the default button. But it does not work because of bug #37083.

Ideally, no button would be the default button, but it is not possible
according to the current NetBeans API - constructors of class
org.openide.DialogDescriptor do not accept <null> in place of
parameter 'initialValue', according to the Javadoc documentation. This
issue is mentioned in bug report #37083, too.
Comment 2 Marian Petras 2003-11-09 12:43:41 UTC
Workaround (not tested):

Call 'setDefaultCapable(false)' on all buttons before
DialogDisplayer.createDialog(...) gets called.
Comment 3 Marian Petras 2003-11-18 13:36:44 UTC
Bug #37083 is now fixed - DialogDescriptor now respects that the Close
button is the default one. But I would like to change 

However, according to description of DialogDescriptor's constructors,
it is still not possible to specify that no button should be displayed
as the default button. I have posted a request for enhancement
regarding this issue as issue #37296 - "Allow to create a
DialogDescriptor without any default option".

The above mentioned workaround should work for this issue, too.
Comment 4 Marian Petras 2004-01-08 12:31:34 UTC
This bug will become invalid once task #37195 ("Search Results should
be opened at bottom like Output window") is completed.
Comment 5 Marian Petras 2004-01-09 18:51:39 UTC
The Search Results window has been redesigned (as a part of task
#37195 - "Search Results should be opened at bottom like Output
window") and is no longer displayed in a dialog. As a side effect of
the change, this bug was fixed (in the trunk).