else if ( ev.getSource() == butLoadList ) {   client.loadListFile(); } else if ( ev.getSource() == butSaveList ) {   client.saveListFile ( client.game.getPlayerEntities(client.getLocalPlayer()) ); }
    public void actionPerformed(ActionEvent ev) {        if (ev.getSource() == butDone) {            boolean done = !client.getLocalPlayer().isDone();            client.sendDone(done);            refreshDoneButton(done);        } else if (ev.getSource() == butLoad) {            loadMech();        } else if (ev.getSource() == butCustom ||  ev.getSource() == lisEntities) {            customizeMech();        } else if (ev.getSource() == butDelete) {            // delete mech            if (lisEntities.getSelectedIndex() != -1) {                client.sendDeleteEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);            }        } else if (ev.getSource() == butChangeBoard || ev.getSource() == lisBoardsSelected) {            // board settings            client.getBoardSelectionDialog().update(client.getMapSettings(), true);            client.getBoardSelectionDialog().show();        } else if (ev.getSource() == butOptions) {            // game options            client.getGameOptionsDialog().update(client.game.getOptions());            client.getGameOptionsDialog().show();        } else if (ev.getSource() == butChangeStart || ev.getSource() == lisStarts) {            client.getStartingPositionDialog().update();            client.getStartingPositionDialog().show();        }    }