vsd.show();
vsd.setVisible(true);
    private void deployMinefield(Coords coords) {        if (!client.game.getBoard().contains(coords)) {            return;        }                if (client.game.containsMinefield(coords)) {            Minefield mf = (Minefield) client.game.getMinefields(coords).elementAt(0);            if (mf.getPlayerId() == client.getLocalPlayer().getId()) {                butDone.setEnabled(false);                client.game.removeMinefield(mf);                deployedMinefields.removeElement(mf);                switch (mf.getType()) {                    case (Minefield.TYPE_CONVENTIONAL) :                    deployM = true;                    deployC = false;                    deployV = false;                    p.setNbrMFConventional(p.getNbrMFConventional() + 1);                    break;                    case (Minefield.TYPE_COMMAND_DETONATED) :                    deployM = false;                    deployC = true;                    deployV = false;                    p.setNbrMFCommand(p.getNbrMFCommand() + 1);                    break;                    case (Minefield.TYPE_VIBRABOMB) :                    deployM = false;                    deployC = false;                    deployV = true;                    p.setNbrMFVibra(p.getNbrMFVibra() + 1);                    break;                }            }        } else {            Minefield mf;                        if (deployM) {                mf = Minefield.createConventionalMF(coords, p.getId());                p.setNbrMFConventional(p.getNbrMFConventional() - 1);            } else if (deployC) {                mf = Minefield.createCommandDetonatedMF(coords, p.getId());                p.setNbrMFCommand(p.getNbrMFCommand() - 1);            } else if (deployV) {                VibrabombSettingDialog vsd  = new VibrabombSettingDialog(clientgui.frame);                vsd.show();                // Hack warning...                              clientgui.bv.stopScrolling();                mf = Minefield.createVibrabombMF(coords, p.getId(), vsd.getSetting());                p.setNbrMFVibra(p.getNbrMFVibra() - 1);            } else {                return;            }            client.game.addMinefield(mf);            deployedMinefields.addElement(mf);            clientgui.bv.update(clientgui.bv.getGraphics());        }                if (p.getNbrMFConventional() == 0 &&            p.getNbrMFCommand() == 0 &&            p.getNbrMFVibra() == 0) {            butDone.setEnabled(true);        }        setConventionalEnabled(p.getNbrMFConventional());        setCommandEnabled(p.getNbrMFCommand());        setVibrabombEnabled(p.getNbrMFVibra());        if (p.getNbrMFConventional() == 0) {            deployM = false;        }        if (p.getNbrMFCommand() == 0) {            deployC = false;         }        if (p.getNbrMFVibra() == 0) {            deployV = false;        }    }