"Toolkit already initialized" error with OpenJDK 11
marcel.au at web.de
Wed Sep 26 11:22:49 UTC 2018
First of all congratulation to the new release and thank you for the hard work on JavaFX.
I have a problem with JavaFX which in my case is embedded in a Rich Client Platform of Eclipse.
I integrated several SWT FXCanvas (some with SwingNode panels as a SWT_AWT replacement) into my app.
This works fine in Java 8 which my current release depends on.
However in Java 11 after the second panel is initialized at startup I get the following error:
"Caused by: java.lang.IllegalStateException: Toolkit already initialized"
Is there a new option available to avoid a new initialization of the toolkit if several FXCanvas are embedded in an application?
Or do you now any changes since Java 8 which could the cause of such an exception?
Thanks in advance for any help.
More information about the openjfx-dev