KetraTerm
API · DevelopmentAll versions

SwingMessageDialogs

Standard Swing message/choice dialogs. All operations and callbacks belong to the EDT.

Functions

Link copied to clipboard
fun show(parent: Component, request: SwingDialogRequest): Int?

Shows a modal dialog and returns its option index, or null on dismissal.

Link copied to clipboard
fun showModeless(parent: Component, request: SwingDialogRequest, decide: (Int?) -> Unit): AutoCloseable

Shows with normal platform focus on the initial choice, without blocking the owner. Completion happens once; closing the returned handle disposes the dialog and reports dismissal.