From 617c100078a35698529545129b84d75bf9d05d2b Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 19 Apr 2005 04:42:48 +0000 Subject: 2005-04-19 Michael Koch * java/awt/print/PrinterJob.java (pageDialog): New method. (printDialog): Implemented. From-SVN: r98371 --- libjava/java/awt/print/PrinterJob.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'libjava/java/awt/print') diff --git a/libjava/java/awt/print/PrinterJob.java b/libjava/java/awt/print/PrinterJob.java index bc5cfcd..c7dba00 100644 --- a/libjava/java/awt/print/PrinterJob.java +++ b/libjava/java/awt/print/PrinterJob.java @@ -152,6 +152,16 @@ public abstract class PrinterJob throws HeadlessException; /** + * @since 1.4 + */ + public PageFormat pageDialog(PrintRequestAttributeSet attributes) + throws HeadlessException + { + // FIXME: Implement this for real. + return pageDialog((PageFormat) null); + } + + /** * Prints the pages. */ public abstract void print () throws PrinterException; @@ -179,8 +189,12 @@ public abstract class PrinterJob * @return false if the user cancels the dialog box, * true otherwise. */ - public abstract boolean printDialog(PrintRequestAttributeSet attributes) - throws HeadlessException; + public boolean printDialog(PrintRequestAttributeSet attributes) + throws HeadlessException + { + // FIXME: Implement this for real. + return printDialog(); + } /** * This sets the pages that are to be printed. -- cgit v1.1