"Load Unit", question.toString(),
Messages.getString("DeploymentDisplay.loadUnitDialog.title"), Messages.getString("DeploymentDisplay.loadUnitDialog.message", new Object[]{ce().getShortName(), ce().getUnusedString()}),
    public void actionPerformed(ActionEvent ev) {        // Are we ignoring events?        if ( this.isIgnoringEvents() ) {            return;        }        if ( statusBarActionPerformed(ev, client) )          return;                  if (!client.isMyTurn()) {            // odd...            return;        }                if (ev.getSource() == butDone) {            deploy();        } else if (ev.getActionCommand().equals(DEPLOY_NEXT)) {             ce().setPosition(null);            clientgui.bv.redrawEntity(ce());            // Unload any loaded units.            Enumeration iter =  ce().getLoadedUnits().elements();            while ( iter.hasMoreElements() ) {                Entity other = (Entity) iter.nextElement();                // Please note, the Server never got this unit's load orders.                ce().unload( other );                other.setTransportId( Entity.NONE );                other.newRound(client.game.getRoundCount());            }                        selectEntity(client.getNextDeployableEntityNum(cen));        } else if (ev.getActionCommand().equals(DEPLOY_TURN)) {            turnMode = true;        }         else if (ev.getActionCommand().equals(DEPLOY_LOAD)) {            // What undeployed units can we load?            Vector choices = new Vector();            Enumeration entities = client.game.getEntities();            Entity other;            while ( entities.hasMoreElements() ) {                other = (Entity) entities.nextElement();                if ( other.isSelectableThisTurn()                     && ce().canLoad(other) ) {                    choices.addElement( other );                }            }            // Do we have anyone to load?            if ( choices.size() > 0 ) {                String[] names = new String[ choices.size() ];                StringBuffer question = new StringBuffer();                question.append( ce().getShortName() );                question.append( " has the following unused space:\n" );                question.append( ce().getUnusedString() );                question.append( "\n\nWhich unit do you want to load?" );                for ( int loop = 0; loop < names.length; loop++ ) {                    names[loop] = ( (Entity)choices.elementAt(loop) ).getShortName();                }                SingleChoiceDialog choiceDialog =                    new SingleChoiceDialog( clientgui.frame,                                            "Load Unit",                                            question.toString(),                                            names );                choiceDialog.show();                if ( choiceDialog.getAnswer() == true ) {                    other = (Entity) choices.elementAt( choiceDialog.getChoice() );                    // Please note, the Server may never get this load order.                    ce().load( other );                    other.setTransportId( cen );                    clientgui.mechD.displayEntity(ce());                }            } // End have-choices            else {                AlertDialog alert = new AlertDialog( clientgui.frame,                                                     "Load Unit",                                                     ce().getShortName() + " can not load any of the remaining units." );                alert.show();            }        } // End load-unit        else if (ev.getActionCommand().equals(DEPLOY_UNLOAD)) {            // Do we have anyone to unload?            Vector choices = ce().getLoadedUnits();            if ( choices.size() > 0 ) {                Entity other = null;                String[] names = new String[ choices.size() ];                StringBuffer question = new StringBuffer();                question.append( ce().getShortName() );                question.append( " has the following unused space:\n" );                question.append( ce().getUnusedString() );                question.append( "\n\nWhich unit do you want to unload?" );                for ( int loop = 0; loop < names.length; loop++ ) {                    names[loop] = ( (Entity)choices.elementAt(loop) ).getShortName();                }                SingleChoiceDialog choiceDialog =                    new SingleChoiceDialog( clientgui.frame,                                            "Unload Unit",                                            question.toString(),                                            names );                choiceDialog.show();                if ( choiceDialog.getAnswer() == true ) {                    other = (Entity) choices.elementAt( choiceDialog.getChoice() );                    // Please note, the Server never got this load order.                    if ( ce().unload( other ) ) {                        other.setTransportId( Entity.NONE );                        other.newRound(client.game.getRoundCount());                        clientgui.mechD.displayEntity(ce());                    }                    else {                        System.out.println( "Could not unload " +                                            other.getShortName() +                                            " from " + ce().getShortName() );                    }                }            } // End have-choices            else {                AlertDialog alert = new AlertDialog( clientgui.frame,                                                     "Unload Unit",                                                     ce().getShortName() + " is not transporting any units." );                alert.show();            }        } // End unload-unit    } // End public void actionPerformed(ActionEvent ev)