if (!client.doYesNoDialog(title, body)) {
ConfirmDialog response = client.doYesNoBotherDialog(title, body); if ( !response.getShowAgain() ) { Settings.nagForNoAction = false; Settings.save(); } if ( !response.getAnswer() ) {
    private void ready() {        if (attacks.isEmpty() && Settings.nagForNoAction) {            // comfirm this action            String title = "Don't fire?";            String body = "This unit has not fired any weapons.\n\n" +                "Are you really done?\n";            if (!client.doYesNoDialog(title, body)) {                return;            }        }        // stop further input (hopefully)        disableButtons();        // remove temporary attacks from game & board        removeTempAttacks();                // send out attacks        client.sendAttackData(cen, attacks);                // clear queue        attacks.removeAllElements();        // Clear the menu bar.        client.getMenuBar().setEntity( null );        // close aimed shot display, if any        ash.closeDialog();        ash.lockLocation(false);    }