Dialog.addStandardButtons

Add a right-aligned row of standard buttons at the bottom of the dialog, each wired to dismiss the dialog with the matching DialogResult. The OK/Yes button becomes the dialog's default push button (activated by Enter via the native dialog manager).

Button captions are localized automatically: an app translation (looked up via tr under the keys deft.button.ok / .cancel / .yes / .no) wins; otherwise the operating system's own localized text is used, so OK/Cancel/ Yes/No match the user's Windows language even with no catalog installed.

class Dialog
void
addStandardButtons

Meta