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.
Summary: | IllegalThreadStateException: must be called in EQ | ||
---|---|---|---|
Product: | platform | Reporter: | turletsjungle |
Component: | Dialogs&Wizards | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | daik, marco_bresciani, tgiunipero, thadguidry, trss, tzezula, venelin.valev |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 151992 |
Attachments: | stacktrace |
Description
turletsjungle
2010-03-15 00:21:09 UTC
Created attachment 95145 [details]
stacktrace
The WizardDescriptor.Panel.getComponent() javadoc says that it can be called by any thread but it's seems wrong as according to http://performance.netbeans.org/howto/dialogs/wizard-panels.html the Panel cannot construct UI components in the constructor and it has to return component from getComponent() where it cannot be created as it is not in the EDT. Only way how to do it is to use SwingUtilities.invokeAndWait which may cause dead lock. So better way is to fix it in the TemplateWizard.updateState, which should do the same as a WizardDescriptor.updateState (reschedule to EDT when needed). This should be fixed in #217446, please reopen if still reproducible. |