SwingClipboardReadPrompt
class SwingClipboardReadPrompt(messages: SwingHostMessages, showDialog: (request: SwingDialogRequest, decide: (Int?) -> Unit) -> AutoCloseable) : AutoCloseable
Cancellable read consent owned by one terminal pane. All operations belong to the EDT. The product presents its standard dialog and returns a handle that closes it. No clipboard content is passed to the dialog.
Cancellation, expiry and pane disposal close the dialog. Blocking persists for this pane's lifetime, including later requests admitted with Allow.
Parameters
showDialog
opens product UI, delivers a decision on the EDT, and returns its disposal handle.
messages
host message bundle; choices keep their stable decision indices.
Constructors
Link copied to clipboard
constructor(messages: SwingHostMessages, showDialog: (request: SwingDialogRequest, decide: (Int?) -> Unit) -> AutoCloseable)
Creates a prompt using the JVM display locale and bundled messages.