buttonOf

fun buttonOf(text: String, handler: EventHandler<ActionEvent>): Button

Factory method to create a simple, text-only, Button with an onAction EventHandler

Return

Button

Parameters

text

The Button text

handler

the EventHandler for the onAction event