JavaFX binding and null values

后端 未结 2 1587
暖寄归人
暖寄归人 2021-02-14 06:38

I was wondering how to bind values where the source of the bind could be null.

I have a property:

private ObjectProperty operation = new         


        
2条回答
  •  猫巷女王i
    2021-02-14 07:18

    Just in case if somebody using not Java itself but Kotlin. It is a good idea to use wonderful tornadofx library. There you can just use operation.select{it.name}. Although, this feature seems not to be documented yet, so it took some time to discover it.

提交回复
热议问题