client.mechD.wPan.wToHitR.setText("Impossible");
client.mechD.wPan.wToHitR.setText(toHit.getValueAsString());
    private void updateTarget() {        butFire.setEnabled(false);        // update target panel        final int weaponId = client.mechD.wPan.getSelectedWeaponNum();        if (ten != Entity.NONE && weaponId != -1) {            ToHitData toHit = Compute.toHitWeapon(client.game, cen, ten, weaponId, attacks);            client.mechD.wPan.wTargetR.setText(te().getDisplayName());            client.mechD.wPan.wRangeR.setText("" + ce().getPosition().distance(te().getPosition()));            if (ce().getEquipment(weaponId).isUsedThisRound()) {                client.mechD.wPan.wToHitR.setText("Already fired");                butFire.setEnabled(false);            } else if (toHit.getValue() == ToHitData.IMPOSSIBLE) {                client.mechD.wPan.wToHitR.setText("Impossible");                butFire.setEnabled(false);            } else if (toHit.getValue() == ToHitData.AUTOMATIC_MISS) {                client.mechD.wPan.wToHitR.setText("Automatic miss");                butFire.setEnabled(true);            } else {                client.mechD.wPan.wToHitR.setText(toHit.getValue() + " (" + Compute.oddsAbove(toHit.getValue()) + "%)");                butFire.setEnabled(true);            }            client.mechD.wPan.toHitText.setText(toHit.getDesc());            butSkip.setEnabled(true);        } else {            client.mechD.wPan.wTargetR.setText("---");            client.mechD.wPan.wRangeR.setText("---");            client.mechD.wPan.wToHitR.setText("---");            client.mechD.wPan.toHitText.setText("");        }    }