bkenn
05/25/2017, 7:39 PMgtnarg
05/25/2017, 9:03 PMalexp11223
05/25/2017, 9:16 PMFxTimer.runLater(
Duration.ofMillis(2500),
() -> doSomething());
I just need to run a task (once) after 2 seccarlw
05/25/2017, 9:32 PMedvin
05/25/2017, 9:56 PMobservable
function to create a writable property, or you can modify your domain object to create properties.edvin
05/25/2017, 9:59 PMedvin
05/25/2017, 10:14 PMedvin
05/25/2017, 10:14 PMedvin
05/25/2017, 10:19 PMrunLater(2.5.seconds) { doSomething() }
edvin
05/25/2017, 10:21 PMedvin
05/25/2017, 10:51 PMedvin
05/25/2017, 10:51 PMedvin
05/25/2017, 11:14 PMedvin
05/25/2017, 11:18 PMSola
05/25/2017, 11:46 PMreplaceWith
function should include not only sizeToScene
but also centerOnScreen
nyxcharon
05/26/2017, 12:11 AMedvin
05/26/2017, 6:29 AMedvin
05/26/2017, 6:34 AMUIComponent.replaceWith
now.alexp11223
05/26/2017, 6:59 AMTimerTask
does not have any properties like isRunningedvin
05/26/2017, 7:25 AMrunLater
will start the timer and execute after the given amount of time, unless you have cancelled it via the returned TimerTask?edvin
05/26/2017, 7:32 AMalexp11223
05/26/2017, 7:33 AMrunLater(2.5.seconds)
but in 1 sec the property was changed again, then I need to ignore that.
Of course I can add flag like isRunning
and set it manually in my code, but I thought that something like that was already included in timeredvin
05/26/2017, 8:11 AMedvin
05/26/2017, 8:17 AMSola
05/26/2017, 11:44 AMSola
05/26/2017, 11:54 AMsizeToScene
parameter should work when transition
is null too ( It doesn't for now )edvin
05/26/2017, 12:48 PMalexp11223
05/26/2017, 2:07 PMrunLater
runs on the FX thread?alexp11223
05/26/2017, 2:08 PMjava.lang.IllegalStateException: Not on FX application thread; currentThread = Timer-0