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

Win32: Embedded Frames do not properly print to external DCs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 1.2.2
    • 1.2.0
    • client-libs
    • None
    • 2d
    • 1.2.2
    • x86
    • windows_nt

    Description

      Trying to load simple beans like the Juggler fail in Microsoft Excel.

      To reproduce the problem, compile the attached test case, run the EmbedTest.exe
      file, and click the "Print with external DC..." button. When the print dialog
      appears, select a printer, or Print to File, and press OK. The following NPE
      appears:
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at sun.java2d.SunGraphics2D.getCompBounds(SunGraphics2D.java:469)
              at sun.awt.windows.WGraphics.getCompBounds(WGraphics.java:155)
              at sun.java2d.loops.RasterOutputManager.validatePipe(RasterOutputManager
      .java:296)
              at sun.awt.windows.WGraphics.validatePipe(WGraphics.java:141)
              at sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:45)
              at sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:1619)
              at MainFrame$LWButton.paint(MainFrame.java:191)
              at java.awt.Container.paint(Container.java:770)
              at MainFrame$LWContainer.paint(MainFrame.java:216)
              at java.awt.Component.print(Component.java:1941)
              at java.awt.Container.print(Container.java:810)
              at java.awt.Component.lightweightPrint(Component.java:1981)
              at java.awt.Container.lightweightPrint(Container.java:928)
              at java.awt.Component.printAll(Component.java:1963)
              at java.awt.Container.printOneComponent(Container.java:914)
              at java.awt.Container.printComponents(Container.java:897)
              at sun.awt.windows.WEmbeddedFrame.print(WEmbeddedFrame.java:48)
              at MainFrame$ActionPrintWithDC.printDC(Native Method)
              at MainFrame$ActionPrintWithDC.actionPerformed(MainFrame.java:145)
              at java.awt.Button.processActionEvent(Button.java:308)
              at java.awt.Button.processEvent(Button.java:281)
              at java.awt.Component.dispatchEventImpl(Component.java:2378)
              at java.awt.Component.dispatchEvent(Component.java:2289)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:258)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)

      Attachments

        Issue Links

          Activity

            People

              flar Jim Graham
              jdochezorcl Jerome Dochez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: