Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8116206

FXCanvas Component and multiple SWT Displays

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      SWT version: 3.7.2
      JavaFX version: 2.2
      SO: Windows XP 32 bit
      Jre: 7u7

      Description

      Dear JavaFX Team,
       
      I want to report a bug for FXCanvas component and the integration with the SWT framework. I have a application which can create multiple Displays (I develop on Windows environment) because I need several Thread-UIs. The problem begins when I create a FXCanvas into a child Display, the FXCanvas must reference to Display.getDefault() and make a conversion of SWT's thread from main Display to JavaFX's thread. Thus, the main Display throws the exception org.eclipse.swt.SWTException: Invalid thread Access. I attach a executable jar and the source code with the test. Steps to do:
       
      - Exec the jar
      - Open a SimpleDisplay
      - Open a FXCanvasDisplay
      - See as main display throws the exception.
       
      Thank you in advance

        Attachments

        1. MultipleDisplaysAndJavaFX.java
          4 kB
          J. Duke

          Activity

            People

            • Assignee:
              snorthov Steve Northover (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: