Index: java/awt/print/PrinterJob.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/print/PrinterJob.java,v
retrieving revision 1.3.20.4
diff -u -r1.3.20.4 PrinterJob.java
--- java/awt/print/PrinterJob.java 11 Jan 2005 09:51:56 -0000 1.3.20.4
+++ java/awt/print/PrinterJob.java 20 Jan 2005 16:22:56 -0000
@@ -38,6 +38,8 @@
package java.awt.print;
+import java.awt.HeadlessException;
+
import javax.print.PrintService;
import javax.print.attribute.PrintRequestAttributeSet;
@@ -146,7 +148,8 @@
*
* @return The modified PageFormat
.
*/
- public abstract PageFormat pageDialog(PageFormat page_format);
+ public abstract PageFormat pageDialog(PageFormat page_format)
+ throws HeadlessException;
/**
* Prints the pages.
@@ -166,7 +169,8 @@
* @return false
if the user cancels the dialog box,
* true
otherwise.
*/
- public abstract boolean printDialog();
+ public abstract boolean printDialog()
+ throws HeadlessException;
/**
* Displays a dialog box to the user which allows the print job
@@ -175,7 +179,8 @@
* @return false
if the user cancels the dialog box,
* true
otherwise.
*/
- public abstract boolean printDialog(PrintRequestAttributeSet attributes);
+ public abstract boolean printDialog(PrintRequestAttributeSet attributes)
+ throws HeadlessException;
/**
* This sets the pages that are to be printed.