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

Linux: Toolkit.getPrintJob() does not work.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description


      Tested with j2sdk 1.3.0 Linux beta build b05 on
      both of on Redhat6.1J original and upgrade version

      Toolkit.getPrintJob() does not provide a print dialog.


      To reproduce,
      Compile an run an attached test case. (PrintDialogTest.java)

      Any print dialog does not appear though "Toolkit.getPrintJob()" is
      printed on terminal.

      Also With Cricket linux Toolkit.getPrintJob() does not provide a print dialog and NLP Exception occurs.

      Exception in thread "main" java.lang.NullPointerException
              at sun.awt.motif.UPrintDialog.<init>(UPrintDialog.java:170)
              at sun.awt.motif.PSPrintControl$1.run(PSPrintControl.java:110)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.awt.motif.PSPrintControl.<init>(PSPrintControl.java:107)
              at sun.awt.motif.MToolkit.getPrintJob(MToolkit.java:307)
              at PrintDialogTest.run(PrintDialogTest.java:28)
              at PrintDialogTest.main(PrintDialogTest.java:9)






        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sherman Xueming Shen
              Reporter:
              mmtokunasunw Mtokunaga Mtokunaga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: