Tim McCormack
12/08/2019, 2:17 PMconfirm
suffers the same problem as creating a JavaFX dialog directly: The text gets cut off and you can't even resize the alert window to see the truncated message.altavir
12/08/2019, 2:38 PMTim McCormack
12/08/2019, 2:44 PMval delete = ButtonType("Delete post and attachments", ButtonBar.ButtonData.APPLY)
val cancel = ButtonType("Cancel", <http://ButtonBar.ButtonData.NO|ButtonBar.ButtonData.NO>)
val prompt = Dialog<ButtonType?>().apply {
title = "Delete post"
headerText = "Delete this post?"
dialogPane.content = Text("The entire post and all of its attachments will be deleted irrevocably.").apply {
wrappingWidth = 600.0
}
dialogPane.buttonTypes.setAll(delete, cancel)
}
Tim McCormack
12/08/2019, 2:44 PMText
and wrappingWidth