Re: Stage hide/show from Swing

2015-05-26 Thread Matthias Hänel
Thanks Kevin, I did it like that :) Matthias > Am 19.05.2015 um 16:59 schrieb Kevin Rushforth : > > Actually, I was saying that you should call Platform.setImplicitExit(false). > This is good practice for Swing interop applications, and is absolutely > needed in your case. l Note that this i

Re: Stage hide/show from Swing

2015-05-19 Thread Kevin Rushforth
Actually, I was saying that you should call Platform.setImplicitExit(false). This is good practice for Swing interop applications, and is absolutely needed in your case. l Note that this is attribute state so you only need to do it once at the beginning of your application. My other point is

Re: Stage hide/show from Swing

2015-05-18 Thread Kevin Rushforth
You should call Platform.setImplicitExit(false) to disable the default behavior where the FX toolkit exits when the last Stage is closed. One more suggestion: PlatformImpl.startup(new Runnable() This is not public API and should be avoided. If you are running a Swing application and want

Re: Stage hide/show from Swing

2015-05-18 Thread Tom Schindl
It is important to make this call at startup? Are you doing this? Tom Von meinem iPhone gesendet > Am 18.05.2015 um 16:53 schrieb Matthias Hänel : > > thanks Tom for your answer. > > I just tried to use Platform.setImplicitExit(false) but it didn't do anything > different. > I suspect I shoul

Re: Stage hide/show from Swing

2015-05-18 Thread Matthias Hänel
thanks Tom for your answer. I just tried to use Platform.setImplicitExit(false) but it didn't do anything different. I suspect I should have this runLater behaviour for the second "start"/show phase. And hide will not close the JFX thread interanally. Still there is no Runable call at the secon

Re: Stage hide/show from Swing

2015-05-18 Thread Tom Schindl
So then simply call Platform.setImplicitExit(false)? Tom On 18.05.15 16:19, Matthias Hänel wrote: > Thanks Scott for your fast answer. > > > Well, in this case > > PlatformImpl.runLater(new Runnable() > { > @Override > public void run() > { > ... > > > is never c

Re: Stage hide/show from Swing

2015-05-18 Thread Matthias Hänel
Thanks Scott for your fast answer. Well, in this case PlatformImpl.runLater(new Runnable() { @Override public void run() { ... is never called. I believe it is not called because the Stage is not running anymore and therefore the JFX Main Thread is stopped.

Re: Stage hide/show from Swing

2015-05-18 Thread Scott Palmer
I would have thought that #2 was correct. What happened when you tried it? Did you make sure JavaFX didn't try to shutdown automatically when the last Stage was hidden? Scott > On May 18, 2015, at 7:37 AM, Matthias Hänel wrote: > > Hello there, > > > I have a stage that is been called from