public PrintService accept(PrintRequestAttributeSet set) {
		UIUtilities.forceFocusToAccept();
		mService = UIUtilities.getTypedSelectedItemFromCombo(mServices).getObject();
		if (mOrientation != null) {
			PrintUtilities.setPageOrientation(set, (PageOrientation) mOrientation.getSelectedItem());
		}
		if (mPaperType != null) {
			PrintUtilities.setPaperSize(mService, set, PrintUtilities.getMediaDimensions(((WrappedMediaSizeName) mPaperType.getSelectedItem()).getObject(), LengthUnits.IN), LengthUnits.IN);
		}
		PrintUtilities.setPageMargins(mService, set, new double[] { ((Double) mTopMargin.getValue()).doubleValue(), ((Double) mLeftMargin.getValue()).doubleValue(), ((Double) mBottomMargin.getValue()).doubleValue(), ((Double) mRightMargin.getValue()).doubleValue() }, LengthUnits.IN);
		if (mChromaticity != null) {
			PrintUtilities.setChromaticity(set, (InkChromaticity) mChromaticity.getSelectedItem());
		}
		if (mSides != null) {
			PrintUtilities.setSides(set, (PageSides) mSides.getSelectedItem());
		}
		if (mNumberUp != null) {
			PrintUtilities.setNumberUp(set, UIUtilities.getTypedSelectedItemFromCombo(mNumberUp).getObject());
		}
		if (mPrintQuality != null) {
			PrintUtilities.setPrintQuality(set, (Quality) mPrintQuality.getSelectedItem());
		}
		if (mResolution != null) {
			PrintUtilities.setResolution(set, UIUtilities.getTypedSelectedItemFromCombo(mResolution).getObject());
		}
		return mService instanceof DummyPrintService ? null : mService;
	}