When using the JavaHelp viewer in conjunction with Substance look and feel the
viewer throws a substance.UIThreadingViolationException indicating swing
components are being created off the event dispatch thread. Digging through the
source I see that in JHelpPrintHandler.java in the PrintThread inner class you
can see: JEditorPane editor = new JHEditorPane(); The JHEditorPane is an inner
class that extends JEditorPane and is therefore a swing component which is
clearly being created off the EDT. I have also noticed in other bug filings you
mention that swing is not thread safe and component creation should be on the
EDT in for example bug ID 6206465. Showing you are aware of this being a bug.
The creation of this component should probably be done on the EDT per your own
advice in the aforementioned bug filing.
When using the JavaHelp viewer in conjunction with Substance look and feel the viewer throws a substance.UIThreadingViolationException indicating swing components are being created off the event dispatch thread. Digging through the source I see that in JHelpPrintHandler.java in the PrintThread inner class you can see: JEditorPane editor = new JHEditorPane(); The JHEditorPane is an inner class that extends JEditorPane and is therefore a swing component which is clearly being created off the EDT. I have also noticed in other bug filings you mention that swing is not thread safe and component creation should be on the EDT in for example bug ID 6206465. Showing you are aware of this being a bug. The creation of this component should probably be done on the EDT per your own advice in the aforementioned bug filing.
Environment
Operating System: All Platform: All
Affected Versions
[current]