Re: javafx.embed.singleThread=true not working

2014-02-09 Thread Hendrik Ebbers
Thanks! It’s working now without using private API. Here is the code if someone will have the same problem: package com.guigarage.masteringcontrols; import javafx.embed.swing.JFXPanel; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import

javafx.embed.singleThread=true not working

2014-02-03 Thread Hendrik Ebbers
Hi, I’m currently trying the experimental support of the javafx.embed.singleThread flag to mix the EDT and JFX Application Thread. Therefore I created a demo application. But when I start the app the following exception is thrown: Exception in thread AWT-EventQueue-0

Re: javafx.embed.singleThread=true not working

2014-02-03 Thread Artem Ananiev
Hi, Hendrik, please, try adding the following line to the very beginning of the main() method: PlatformImpl.startup(() - {}); PlatformImpl is an internal class from com.sun.javafx.application, so it is not an official way to do the job, it's just a workaround. Another option is to wrap