CustomMechDialog cmd = new CustomMechDialog(client.frame, entity, editable);
CustomMechDialog cmd = new CustomMechDialog(client, entity, editable);
    public void customizeMech() {        if (lisEntities.getSelectedIndex() == -1) {            return;        }        Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);        boolean editable = entity.getOwnerId() == client.getLocalPlayer().getId();        // display dialog        CustomMechDialog cmd = new CustomMechDialog(client.frame, entity, editable);        cmd.show();        if (editable && cmd.isOkay()) {            // send changes            client.sendUpdateEntity(entity);        }    }