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

FXCanvas Component and multiple SWT Displays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • SWT version: 3.7.2
      JavaFX version: 2.2
      SO: Windows XP 32 bit
      Jre: 7u7

      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

        1. MultipleDisplaysAndJavaFX.java
          4 kB
          J. Duke

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

              Created:
              Updated:
              Resolved:
              Imported: