Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4333290

The Graphics Object passed is not implementing the PrinterGraphics interface

XMLWordPrintable

    • 2d
    • sparc
    • solaris_2.6

      Platform: Win32 and Solaris

      The Graphics Object passed to the print method of the printable interface (java.awt.print) is not implementing the PrinterGraphics interface.

      According to the java 2SE v1.3 documentation, the Graphics Object passed into the print method of the Printable interface should be implementing the PrinterGraphics interface of java.awt.print package such that the getPrinterJob() of the PrinterGraphics interface is available in graphics object. PrinterJob controlling a particular print operation can be retrieved in the print method itself from the graphics object.


      How To reproduce--->
      Compile the SimplePrint.java.If you find a compilation error in the command prompt ,then the bug is reproduced.

      sunitha.elango@eng 2000-04-25

            prr Philip Race
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: