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 49374 - Cancel button on New Library dialog becomes default when OK button is disabled
Summary: Cancel button on New Library dialog becomes default when OK button is disabled
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: David Konecny
Keywords: UI
Depends on:
Blocks: 41535
  Show dependency tree
Reported: 2004-09-21 20:03 UTC by _ pcw
Modified: 2006-03-24 10:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2004-09-21 20:03:44 UTC
Bring up the Library Manager via <Tools | Library
Click on <New Library>
Type in an invalid library name (e.g. includ a
space character in the name).
Note that the OK button is disabled due to the
invalid name and that default button status has
shifted to the Cancel button.
Because of this behavior, if the user quickly
types in a name (that is invalid) and hits
<Enter>, the dialog will be cancelled and their
library will not be added to the list.  This is
confusing because this can be done quickly enough
that the invalid name message is never displayed,
or displayed in the tenth of a second before the
<Enter> closes the dialog.
If <Cancel> does NOT become the default button,
this will not happen.  The user will hit <Enter>
and nothing will happen - instead, the dialog will
remain visible and they will see the name they
typed in as well as the error message indicating
that it is invalid.
Comment 1 David Konecny 2004-09-24 16:16:01 UTC
Fixed in:
new revision: 1.18; previous revision: 1.17
new revision: 1.16; previous revision: 1.15
new revision: 1.10; previous revision: 1.9
Comment 2 Marian Mirilovic 2005-12-20 15:50:24 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.