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

PIT: Modal Dialog components lose focus when calling dialog.toBack(), Win32

XMLWordPrintable

    • x86
    • windows_xp

      I am in the process of verifying the bug : 6298136 : Windows: Calling toBack method on a modal dialog sends it behind a blocked window, with the current AWT PIT build (b47) and Looks like the bug is not completely fixed.

      The actual issue reported by the above was that the modal dialog is going behind the blocked window when calling dialog.toBack(). This has been rectified in the current PIT build but still the dialog and the button on the dialog are losing focus when I am clicking it (inside the action performed, I am actually calling dialog.toBack()), though the dialog stays above the blocked window. This behavior is incorrect.

      This is reproducible only on Win32, only with the following PIT build:
      java version "1.6.0-awt.pit_int_jcg_win_03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit_int_jcg_win_03-java2d_01_aug_2005_07_13-b00)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b45, mixed mode)

      This is not reproducible on SolSparc10-JDS. The component on the dialog never loses focus when calling toBack().

      I have attached a sample test. Execute the sample test. Make sure all other windows are iconified and you have only the java windows on the desktop. Click on the button in the dialog. You will notice that the dialog becomes inactive and button loses focus.

            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: