Use the new "when .. choose .. otherwise" in ScalaFX 1.0.0-M1 - `then` replaces with `choose`.