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
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