asd.show();
asd.setVisible(true);
    public void showDialog() {      if (asd != null) {        int oldAimingMode = aimingMode;        closeDialog();        aimingMode = oldAimingMode;      }      if (inAimingMode()) {        String[] options;        boolean[] enabled;        if (target instanceof Mech) {            if (target instanceof BipedMech) {                options = BipedMech.LOCATION_NAMES;                enabled = createEnabledMask(options.length);            } else {                options = QuadMech.LOCATION_NAMES;                enabled = createEnabledMask(options.length);            }            if (aimingMode == IAimingModes.AIM_MODE_IMMOBILE) {                aimingAt = Mech.LOC_HEAD;            } else if (aimingMode == IAimingModes.AIM_MODE_TARG_COMP) {                aimingAt = Mech.LOC_CT;            }        } else if (target instanceof GunEmplacement) {            options = GunEmplacement.HIT_LOCATION_NAMES;            enabled = new boolean[] { true,                                      ((GunEmplacement) target).hasTurret() };            aimingAt = GunEmplacement.LOC_BUILDING;        } else {            return;        }                if (lockedLocation) {          aimingAt = lockedLoc;        }        asd = new AimedShotDialog(clientgui.frame,                      Messages.getString("FiringDisplay.AimedShotDialog.title"), //$NON-NLS-1$                      Messages.getString("FiringDisplay.AimedShotDialog.message"), //$NON-NLS-1$                      options,                      enabled,                      aimingAt,                      lockedLocation,                      this,                      this);        asd.show();        updateTarget();      }    }