From: Michael Koch Date: Tue, 19 Apr 2005 04:42:48 +0000 (+0000) Subject: 2005-04-19 Michael Koch X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=617c100078a35698529545129b84d75bf9d05d2b;p=platform%2Fupstream%2Fgcc.git 2005-04-19 Michael Koch * java/awt/print/PrinterJob.java (pageDialog): New method. (printDialog): Implemented. From-SVN: r98371 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0911a4a..94a8894 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,11 @@ 2005-04-19 Michael Koch + * java/awt/print/PrinterJob.java + (pageDialog): New method. + (printDialog): Implemented. + +2005-04-19 Michael Koch + * java/awt/image/ConvolveOp.java: Removed comment added by eclipse. 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.