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

PIT. Incorrect size returned for a Dialog

XMLWordPrintable

    • b53
    • x86
    • linux_redhat_3.0
    • Verified

      This is reproducible only on a Red Hat Enterprise Linux AS 3.0 system. It is not reproducible on JDS linux or solaris. This is reproducible with AWT PIT build for mustang b51.

      There are three issues, I believe all these are related. Attached is an automated testcase to reproduce the issue. The testcase shows a Frame. On clicking a button on the frame, a window is displayed. On clicking a button on Window, a modal dialog is displayed. Even though the dialog size is set as (150, 150), getSize returns the screen size - the value is printed out in the terminal window.

      When the button in the dialog is clicked, a PrintDialog is shown, but the PrintDialog is shown at 0, 0 instead of the center of the screen.

      Now the PrintDialog and other windows are disposed and the dialog is displayed again. This time the dialog resizes to the screen size.

            dmikhalksunw Denis Mikhalkin (Inactive)
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: