SwingDialogRequest
class SwingDialogRequest(val title: String, val message: String, val severity: SwingDialogRequest.Severity, options: List<String> = listOf(SwingHostMessages.forLocale().message("dialog.ok")), val defaultOption: Int = options.lastIndex)
Plain-text content and choices for a standard product dialog. Both presenters return the chosen option index, or null for Escape, window close or disposal. Options are copied so a caller cannot change their meaning while UI is open.
Parameters
defaultOption
initially selected action; defaults to the last option, conventionally Cancel/Deny. This is independent of dismissing the dialog.
Properties
Link copied to clipboard
Link copied to clipboard
Defensively copied button labels in result-index order; Java mutation attempts throw UnsupportedOperationException.
Link copied to clipboard