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

Windows native fileDialog & printdialog broken by Win32SurfaceData changes.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • 2d
    • beta
    • x86
    • windows_nt
    • Verified

      The windows common file & print dialogs have AWT peers which differ from
      the peers of other components.
      We never draw to these dialogs, so they are initialised differently and
      override the native create(WComponentPeer) method.

      Win32SurfaceData now gets an hWnd for the peer at construction time, but it
      hasn't been initialised die to the overridden method. Previously hwnd was
      obtained only at rendering time. Since we never render to these dialogs
      everything was OK. The new scheme causes a problem which can be reproduced
      using the regression test in the workspace at:
      test/java/awt/Dialog/FileDialogShowTest/FileDialogShowTest.java

            chaasesunw Chet Haase (Inactive)
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: