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

Summary: Unusable buttons in re-used WizardDescriptor
Product: platform Reporter: Pavel Fiala <pfiala>
Component: Dialogs&WizardsAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.