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
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
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
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
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
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
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.
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