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 Platform.setImplicitExit(fa
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
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
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
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
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
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