*** 743,752 **** --- 743,753 ---- /** * return a PageFormat corresponding to the updated attributes, * or null if the user cancelled the dialog. */ + @SuppressWarnings("deprecation") public PageFormat pageDialog(final PrintRequestAttributeSet attributes) throws HeadlessException { if (GraphicsEnvironment.isHeadless()) { throw new HeadlessException(); }