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

REG: Showing common dialog after native print dialog hides the common dialog

XMLWordPrintable

    • 2d
    • b38
    • x86
    • windows_xp
    • Verified

      I have written an application which would show native print dialog to print the print data through PrinterJob API. Select the necessary options and click 'OK'. After this, I am setting a different printable to the PrinterJob and showing the cross-platform print dialog. This dialog is not shown on the top and it always gets hidden behind the other visible windows. This is noticed only on Win32 platforms right from JDK1.5-b05. This feature works fine on all the previous releases and on Tiger till b04.

      I have attached a sample code. Execute the sample code. Make sure some native window is maximized behind the command prompt. You would see a native print dialog. Click 'Print To File' option and enter a file name in the file dialog. Click 'OK' on the file dialog. Now wait for the cross-platform dialog to come up. If it does not come, the bug is reproduced. Minimize the native window and you would see the cross-platform dialog on the screen. Hence the cross platform dialog does not appear on the top and gets hidden always behind some visible native windows.
      -------------------------------------------------------------------------------
      I tested this again with the latest builds and identified that this is a regression introduced in Tiger-beta2-b36. I have attached a screenshot to show how it is displayed on my winxp machine.

      ###@###.### 2004-03-15

            jgodinez Jennifer Godinez (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: