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 37296

Summary: Allow to create a DialogDescriptor without any default option
Product: platform Reporter: Marian Petras <mpetras>
Component: Dialogs&WizardsAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WORKSFORME    
Severity: blocker Keywords: API
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 37110    

Description Marian Petras 2003-11-18 13:27:13 UTC
One of the DialogDescriptor's constructors allows
to specify a set of custom options (Object[]) and
also an initial value. According to the
constructor's documentation, the initial value
must be one of the specified custom options.

I would like the constructor to accept some
special value (such as <null>) which would mean
"no initial value". When a dialog would be created
from the DialogDescriptor instance, it would have
no default button.
Comment 1 Marian Petras 2003-11-18 13:28:10 UTC
See also bug #37083 - "DialogDisplayer ignores DialogDescriptor's
initial value".
Comment 2 Stanislav Aubrecht 2012-04-26 08:17:32 UTC
null value is already accepted in DialogDescriptor's c'tor