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 49407 - Unusable buttons in re-used WizardDescriptor
Summary: Unusable buttons in re-used WizardDescriptor
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: REGRESSION
: 49416 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-22 13:08 UTC by Pavel Fiala
Modified: 2008-12-22 22:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Fiala 2004-09-22 13:08:58 UTC
There are several calls of removeActionListener()
in method resetWizard() of WizardDescriptor. They
remove listeners which had been added in
constructor, so if we open wizard repeatedly, the
 buttons are "dead".
Comment 1 Jiri Rechtacek 2004-09-22 14:06:31 UTC
What IDE build? The best will be attachment of a test case in the
future. I'm assumed that you report to today's build (NB Build 040922
dev), it has been hotfixed in 

src/org/openide/WizardDescriptor.java;
/cvs/openide/src/org/openide/WizardDescriptor.java,v  <-- 
WizardDescriptor.java
new revision: 1.110; previous revision: 1.109

Please, verify ASAP. Thanks
Comment 2 Jiri Rechtacek 2004-09-22 15:15:11 UTC
*** Issue 49416 has been marked as a duplicate of this issue. ***
Comment 3 Pavel Fiala 2004-09-22 15:56:03 UTC
Statement 

    panels.removeChangeListener (weakChangeListener);

in resetWizard() can cause problems in future. Currently it works
properly, because it uses modified weakChangeListener, so it does
nothing. Please correct it.
Comment 4 Jiri Rechtacek 2004-09-22 16:00:20 UTC
Ok, I'll reopen the original issue 49347, it's fixed.
Comment 5 Tomas Danek 2005-07-11 09:08:46 UTC
Can Pavel please verify this?? and also look at issue 49347. Thanx
Comment 6 Pavel Fiala 2005-08-04 09:13:26 UTC
v.