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 - Allow to create a DialogDescriptor without any default option
Summary: Allow to create a DialogDescriptor without any default option
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: API
Depends on:
Blocks: 37110
  Show dependency tree
 
Reported: 2003-11-18 13:27 UTC by Marian Petras
Modified: 2012-04-26 08:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
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-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