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

PIT: Native Dlg's icon overlaps on the title when the dialog is parent-less and shown the first time

XMLWordPrintable

    • b15
    • 7
    • b17
    • x86
    • windows_xp
    • Not verified

      I am showing a frame with a button. On clicking the button, I am creating a parent-less FileDialog and showing it. When the file dialog first appears, the java icon appearing on the top-left corner of the dialog overlaps on the dialog's title. But when I click somewhere on the dialog or the frame, the title bar of the file-dialog flashes and it gets repainted properly. So this problem is seen only the first time the file dialog appears.

      This is reproducible only on Win32 and only with the jdk7-b15 AWT PIT build. Not reproducible on JDK7-b13 since FileDialogs do not show icons. This is reproducible only for parent-less file dialogs and parented file-dialogs do not show icons even on the PIT build.

      To reproduce the bug, run the attached test and click on the button once the frame comes up. A file dialog will be opened. If the dialog's icon overlaps on the title, the bug is reproduced.
      This is not specific to FileDialog and reproducible with Native Print and Page dialogs as well.
      I have attached a test for your reference.
      Attached screensots of native page dialog, print dialog and file dialog.

            art Artem Ananiev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: