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 physical attack?";            String body = "This unit has not used any physical attacks.\n\n" +                "Are you really done?\n";            if (!client.doYesNoDialog(title, body)) {                return;            }        }        disableButtons();        client.sendAttackData(cen, attacks);        attacks.removeAllElements();    }