setOnAction

fun setOnAction(action: (ActionEvent) -> Unit)

Удобный Kotlin-стиль установки Action-обработчика