private void sanitizeNumTrials() {

		// Maximum number of trials is infinite if we're sampling random targets with replacement,
		// but it's only |# Stimulus| if we're sampling with replacement		
		Integer newMax = (chkRandomTarget.isSelected() && !chkRandomWithReplacement.isSelected()) ? cbxTargetType.getItemCount() : null;

		SpinnerNumberModel model = (SpinnerNumberModel) spnTrialCount.getModel();
		model.setMaximum(newMax);

		if( null != newMax && Integer.valueOf(spnTrialCount.getValue().toString()) > newMax ) {
			model.setValue(newMax);
		}
	}