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 115451 - The finish button should be disabled after the first click
Summary: The finish button should be disabled after the first click
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
: 118110 120046 122651 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-13 14:06 UTC by dlipin
Modified: 2007-11-23 17:24 UTC (History)
1 user (show)

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 dlipin 2007-09-13 14:06:41 UTC
Now if the user clicks "Finish" button at the end of installation, this button stay active for some time (registry 
finalization occurs...)
The user has the ability to click it once again that in most cases results in the corrupted registry.

To improve this behaviour we should disable finish button just after it is clicked and only then perform the 
finalization action.
Comment 1 dlipin 2007-10-08 15:35:07 UTC
*** Issue 118110 has been marked as a duplicate of this issue. ***
Comment 2 dlipin 2007-10-09 13:13:22 UTC
evaluation:

1) the user first time click 'next'
2) The action listener (SwingFrameContainer.initComponents():~336, contentPane.getNextButton().addActionListener) 
catches the event
3) It invokes currentUi.evaluateNextButtonClick() that should move to the next wizard component
4) It invokes WizardPanel.evaluateNextButtonClick():215 and do component.getWizard().next() (:220) in it
5) FinilizeRegistryAction starts executing (in background - since it has no UI)
6) The user click 'next' one more time
7) The listener (point 2) catches the event
8) Makes points 3 and 4
9) Wizard.next() moves to line 'else if (parent != null) {' since no more components are available at the same sequence 
level
10) Then Wizard.next():621 is invoking (final WizardComponent component = getNext();)
11) Since no next component is available in the sequence and no parent is available as well -> the Wizard.next() is 
reaching the statement 'finishHandler.finish();'
12) It executes (->Installer.finishHandler->System.exit()) whereas the FinalizeRegistryAction is still running
13) As the result, FRA is terminated somewhere in the middle..
Comment 3 dlipin 2007-10-24 18:20:41 UTC
The particular issue (data loss) has been fixed by Julya (I`ve checked it on the latest build).

The separate issue would be filed against nbi/engine with the common scenario described as "evaluation".
It would not occur in NetBeans 6.0 Installer but we should keep it in mind in future...
Comment 4 dlipin 2007-10-25 15:08:24 UTC
*** Issue 120046 has been marked as a duplicate of this issue. ***
Comment 5 dlipin 2007-11-23 17:24:08 UTC
*** Issue 122651 has been marked as a duplicate of this issue. ***