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

Doc probs in java.awt.print.PrinterJob

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.4.0
    • 1.4.0
    • docs
    • beta
    • generic
    • generic
    • Verified

    Description



      Name: naC79102 Date: 12/07/2000


      The description for the pageDialog and printDialog methods of the PrinterJob
      class do not specify what happens when the system on which it is running
      does not have a printer configured to it.

      Sample code follows....
      import java.awt.print.PrinterJob;

      public class test {
      public test() {

       PrinterJob job = PrinterJob.getPrinterJob();
         try {
              job.printDialog();
              System.out.println("No Exception. ");
         } catch (Exception e) {
           System.out.println("Caught "+e);
         }

      public static void main(String[] args) {
              new test();
      }
      }

      See also Bug Id: 4384739 which states that PrinterJob.print() should throw
      PrinterException if no printer is available.
      ======================================================================

      I think the above comment is meant to refer to bug 4248098.

      phil.race@eng 2001-02-13
      ========================

      Attachments

        Activity

          People

            jballsunw Jennifer Ball (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: