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.
See the attached screenshot. After all reference problems were resolved, the dialog still shows Cancel button. This looks very strange. The button should be changed to Close.
Created attachment 112248 [details] Screenshot
I recall some similar issue filed recently (but without a screenshot). AFAIK the dialog is supposed to show (just) a "Close" button. BrokenReferencesSupport.showAlertImpl in fact creates a JButton 'close' but then does not use it; probably the two usages here of DialogDescriptor.CANCEL_OPTION should be replaced. BTW the code Dialog dlg = null; try { dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); } finally { if (dlg != null) { dlg.dispose(); } } could probably be replaced with just DialogDisplayer.getDefault().notify(dd);
Fixed jet-main c45ea2765b05
*** Bug 203097 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201111100600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c45ea2765b05 User: Tomas Zezula <tzezula@netbeans.org> Log: #203995:Cancel on dialog where all references were resolved