dlg.show();
dlg.setVisible(true);
    public void hexMoused(BoardViewEvent b) {        // Are we ignoring events?        if ( this.isIgnoringEvents() ) {            return;        }        if (b.getType() != BoardViewEvent.BOARD_HEX_DRAGGED) {            return;        }                // ignore buttons other than 1        if (!client.isMyTurn() || ce() == null || (b.getModifiers() & MouseEvent.BUTTON1_MASK) == 0) {            return;        }        // control pressed means a line of sight check.        // added ALT_MASK by kenn        if ((b.getModifiers() & InputEvent.CTRL_MASK) != 0 || (b.getModifiers() & InputEvent.ALT_MASK) != 0) {            return;        }        // check for shifty goodness        boolean shiftheld = (b.getModifiers() & MouseEvent.SHIFT_MASK) != 0;                // check for a deployment        Coords moveto = b.getCoords();         if (ce().getPosition() != null && (shiftheld || turnMode)) { // turn            ce().setFacing(ce().getPosition().direction(moveto));            ce().setSecondaryFacing(ce().getFacing());            clientgui.bv.redrawEntity(ce());            turnMode = false;        } else if (!(client.game.getBoard().isLegalDeployment(moveto, ce().getOwner())                || assaultDropPreference)                || ce().isHexProhibited(client.game.getBoard().getHex(moveto))) {            AlertDialog dlg = new AlertDialog( clientgui.frame,                                               Messages.getString("DeploymentDisplay.alertDialog.title"), //$NON-NLS-1$                                               Messages.getString("DeploymentDisplay.cantDeployInto", new Object[]{ce().getShortName(), moveto.getBoardNum()})); //$NON-NLS-1$            dlg.show();            return;        } else if (Compute.stackingViolation(client.game, ce().getId(), moveto) != null) {            // check if deployed unit violates stacking            return;        } else {                ce().setPosition(moveto);            clientgui.bv.redrawEntity(ce());            butDone.setEnabled(true);        }        clientgui.getBoardView().select( moveto );    }