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

Doc probs in java.awt.print.PrinterJob

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: docs
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: