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.
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.
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.
Workaround (not tested): Call 'setDefaultCapable(false)' on all buttons before DialogDisplayer.createDialog(...) gets called.
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.
This bug will become invalid once task #37195 ("Search Results should be opened at bottom like Output window") is completed.
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).