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

PrinterJob.getUserName() does not display anything.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Introduced In Build:
      1.2fcs
    • Introduced In Version:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Not verified

      Description



      Name: rrT76497 Date: 08/31/98


              import java.awt.*;
              import java.awt.print.*;

              public class SimpleTest {
                  public static void main(String args[]) {
                      PrinterJob printerJob = PrinterJob.getPrinterJob();
                      printerJob.setPrintable(new Printable()
                          { {System.out.println("Sucessfully Printable
      is created");}
                              public int print(Graphics graphics,PageFormat pf
      , int pageIndex) {
                                             return Printable.PAGE_EXISTS;
                          }});
                      System.out.println("The name of the
      user"+printerJob.getUserName()+";");
                   }
              }
          When printerJob.getUserName() is given in the println, no output
      comes to the console.
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            mpeircesunw Michael Peirce (Inactive)
            Reporter:
            rramsunw Ranganathan Ram (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: