Re: Integrating JFX Dialog/Stage in Swing application

2014-06-02 Thread Anthony Petrov
Platform.setImplicitExit(false) This is the correct answer. Please see the javadoc for more details. -- best regards, Anthony On 5/31/2014 10:19 PM, Jeff Martin wrote: You might try calling that new JFXPanel() in your application main. Maybe go ahead and call

Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Robert Krüger
Hi, I am trying something which I thought would technically be the easiest way of migrating parts of an existing application from Swing to JFX, i.e. have a Swing JMenuItem trigger the showing of a JFX stage because I thought this would technically even be cleaner than to have a swing dialog

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Robert Krüger
Hi Jeff, thanks, yeah, that's a workaround I have also found. I am just asking myself (and the JFX developers on this list) why this kind of Integration is not supported directly. Good to know that you have used this quite a bit. So I'll try using it until someone brings up a nicer solution or I

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Robert Krüger
That was quicker than I had hoped. Invoking close() on the stage constructed in this way results in this here: [ERROR|16:24:23] d.l.m.MediaTool Uncaught exception in thread JavaFX Application Thread: [JavaFX Application Thread] java.lang.IllegalStateException: This operation is permitted on the

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Jeff Martin
You might try calling that new JFXPanel() in your application main. Maybe go ahead and call Platform.setImplicitExit(false) as well. jeff On May 31, 2014, at 9:46 AM, Robert Krüger krue...@lesspain.de wrote: That was quicker than I had hoped. Invoking close() on the stage constructed in

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Werner Lehmann
Hi Robert, the problem with this is that the stage cannot have a swing window as its owner. If users misclick the stage will hide behind your main window. But if that is acceptable... Werner On 31.05.2014 14:27, Robert Krüger wrote: have a Swing JMenuItem trigger the showing of a JFX stage