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

getPrintJob "properties" parameter not documented well enough to use it

    XMLWordPrintable

Details

    • beta
    • generic, unknown
    • generic, solaris_10

    Description

      The Toolkit.getPrintJob() method provides a "properties" parameter, however
      there is no documentation on what properties can be legally passed in this
      parameter. Because of this, the parameter is unusable.


      mei.chan@Corp 1997-03-28
      A custonmer has called in and requested for the supported properties since
      the documentation was found lacking on this.
      I searched through the source code and found them, here they are:

      Destination: (DEST_PROP)
          "awt.print.destination" = "printer" | "file"

      Printer Name: (PRINTER_PROP)
          "awt.print.printer" = <name of printer you want to print to>

      File Name: (FILENAME_PROP)
           "awt.print.fileName" = <name of file you want to print to>

      Number of copies to print: (NUMCOPIES_PROP)
            "awt.print.numCopies" = <an integer, default is 1>

      Any local site options: (OPTIONS_PROP)
          "awt.print.options" = <whatever you need>

      Orientation (ORIENT_PROP)
           "awt.print.orientation" = "portrait" | "landscape"

      Papersize (PAPERSIZE_PROP)
          "awt.print.paperSize" = "letter" | "legal" | "executive" | "a4"

      Attachments

        Issue Links

          Activity

            People

              dmendenhsunw David Mendenhall (Inactive)
              amfowler Anne Fowler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: