showDialog

fun showDialog(dialog: Dialog): Optional<ButtonType>

Shows a dialog and blocks further thread execution.

Return

Chosen button or Optional.empty if canceled.

Parameters

dialog

The Dialog to show.