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

NullPointerException in printing on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • JDK:jdk-8-ea-bin-b82-windows-i586-21_mar_2013.exe
      OS:windows xp sp3, windows 7
      tools:eclipse 3.7.2

      <code>
                      Node node = new Circle(100, 200, 200);
      PrinterJob job = PrinterJob.createPrinterJob();
      if (job != null) {
      boolean success = job.printPage(node);
      if (success) {
      job.endJob();
      }
      }
      </code>
      I run the code above on windows xp, but it doesn't work. I try to debug it. It seems like the com.sun.glass.ui.Application.GetApplication() method return null, what cause GetApplication()._invokeAndWait(runnable) which in com.sun.glass.ui.Application.invokeAndWait(Runnable) method throw NullPointException.
      Any help will be appreciated.

            prr Philip Race
            vivuszhonjfx vivuszhong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: