Class MMConfirmDialog
java.lang.Object
megamek.client.ui.dialogs.MMDialogs.MMConfirmDialog
A simple modal confirmation dialog showing a single question and YES and NO buttons. This dialog will scale with the
gui scaling (and I found no way to do this for JOptionDialog)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MMConfirmDialog
public MMConfirmDialog()
-
-
Method Details
-
confirm
Shows a modal confirmation dialog with a YES and a NO button. The String title is shown as the window title. The given message is shown as the question to be confirmed in the center of the dialog.
Returns Response.YES when the user pressed ENTER or selected YES, Response.NO otherwise.
The dialog scales itself with the current GUI scale. It closes when ESC is pressed.
-