ad.show();
ad.setVisible(true);
    private void updateMinefield() {        String conv = fldConventional.getText();        String cmd = fldCommandDetonated.getText();        String vibra = fldVibrabomb.getText();        int nbrConv = 0;        int nbrCmd = 0;        int nbrVibra = 0;        try {            if (conv != null && conv.length() != 0) {                nbrConv = Integer.parseInt(conv);            }            if (cmd != null && cmd.length() != 0) {                nbrCmd = Integer.parseInt(cmd);            }            if (vibra != null && vibra.length() != 0) {                nbrVibra = Integer.parseInt(vibra);            }        } catch (NumberFormatException e) {            AlertDialog ad = new AlertDialog(clientgui.frame, Messages.getString("ChatLounge.MinefieldAlert.title"), Messages.getString("ChatLounge.MinefieldAlert.message")); //$NON-NLS-1$ //$NON-NLS-2$            ad.show();            return;        }        if (nbrConv < 0 || nbrCmd < 0 || nbrVibra < 0) {            AlertDialog ad = new AlertDialog(clientgui.frame, Messages.getString("ChatLounge.MinefieldAlert.title"), Messages.getString("ChatLounge.MinefieldAlert.message")); //$NON-NLS-1$ //$NON-NLS-2$            ad.show();            return;        }        Client c = getPlayerListSelected(lisMinefield);        c.getLocalPlayer().setNbrMFConventional(nbrConv);        c.getLocalPlayer().setNbrMFCommand(nbrCmd);        c.getLocalPlayer().setNbrMFVibra(nbrVibra);        c.sendPlayerInfo();    }