← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Component creation off EDT. #26

Open

Description

@glassfishrobot

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]

Activity

  1. glassfishrobot commented on Aug 27, 2009

    @glassfishrobot
    ContributorAuthor

    Reported by adamarmistead

  2. glassfishrobot commented on Aug 27, 2009

    @glassfishrobot
    ContributorAuthor

    Was assigned to javahelp-issues

  3. glassfishrobot commented on Apr 26, 2017

    @glassfishrobot
    ContributorAuthor

    This issue was imported from java.net JIRA JAVAHELP-26

  4. added this to the milestone 1 milestone on Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions