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.

View | Details | Raw Unified | Return to bug 33467
Collapse All | Expand All

(-)src/org/openide/WizardDescriptor.java (-4 / +3 lines)
Lines 256-262 Link Here
256
    private Map properties;
256
    private Map properties;
257
    ResourceBundle bundle = NbBundle.getBundle(WizardDescriptor.class);
257
    ResourceBundle bundle = NbBundle.getBundle(WizardDescriptor.class);
258
258
259
    private Thread backgroundValidationTask;
259
    private RequestProcessor.Task backgroundValidationTask;
260
260
261
    {
261
    {
262
        // button init
262
        // button init
Lines 1135-1142 Link Here
1135
            AsynchronousValidatingPanel p = (AsynchronousValidatingPanel) panel;
1135
            AsynchronousValidatingPanel p = (AsynchronousValidatingPanel) panel;
1136
            setValid(false);  // disable Next> Finish buttons
1136
            setValid(false);  // disable Next> Finish buttons
1137
            p.prepareValidation();
1137
            p.prepareValidation();
1138
            backgroundValidationTask = new Thread(validationPeformer);
1138
            backgroundValidationTask = RequestProcessor.getDefault().post(validationPeformer);
1139
            backgroundValidationTask.start();
1140
        } else if (panel instanceof ValidatingPanel) {
1139
        } else if (panel instanceof ValidatingPanel) {
1141
            validationPeformer.run();
1140
            validationPeformer.run();
1142
        } else {
1141
        } else {
Lines 1646-1652 Link Here
1646
1645
1647
            if (ev.getSource() == cancelButton) {
1646
            if (ev.getSource() == cancelButton) {
1648
                if (backgroundValidationTask != null) {
1647
                if (backgroundValidationTask != null) {
1649
                    backgroundValidationTask.interrupt();
1648
                    backgroundValidationTask.cancel();
1650
                }
1649
                }
1651
                Object oldValue = getValue();
1650
                Object oldValue = getValue();
1652
                setValueWithoutPCH(CANCEL_OPTION);
1651
                setValueWithoutPCH(CANCEL_OPTION);

Return to bug 33467