Re: Extending a Region to create a JUNG Layout

2014-05-31 Thread Danno Ferrin
The new matrix classes exposed in JavaFX 8 help a lot. I'll re-license it BSD. 2 clause, 3 clause, new? Can you point me to a preferred header? On Fri, May 30, 2014 at 6:11 PM, Jeffrey Guenther < guenther.jeff...@gmail.com> wrote: > Danno, thanks! It works super well and has so little code! >

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

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 wrote: > That was quicker than I had hoped. Invoking close() on the stage > constructed in this way results in t

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 ev

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 Jeff Martin
I'm sure this isn't the proper answer, but I have used this call to initialize the FX toolkit on demand from various Swing contexts and it has always worked for me: new javafx.embed.swing.JFXPanel(); Then you would need the Platform.runLater(). Usually for the whole method that creates

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 contai