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

PIT: JDialog's components are not gaining focus by default when the dialog is first shown, win32

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b53
    • CPU:
      generic, x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      I am showing a JDialog / JOptionPane with a button and the parent of this dialog is not visible (equivalent to using 'null' in JOptionPane.showMessageDialog(null, "message dialog with invisible parent")). When the dialog is shown on the screen, the focus is not given to the button located in the dialog. Instead the dialog retains the focus and one has to press 'TAB' to bring the focus to the component.

      This is noticed only on the following PIT build and only on win32 platform. Not reproducible on Mustang-b21.
      java version "awt.pit-jcg-win-03-2005-01-26-Wed-int.mustang"
      Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-jcg-win-03-2005-01-26-Wed-int.mustang)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b20, mixed mode)

      I have attached a couple of sample tests. Execute them on WinXP with the above PIT build. You would typically see a dialog with a button. If the button does not gain focus automatically, the bug is reproduced.
      ###@###.### 2005-2-04 12:37:39 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmikhalksunw Denis Mikhalkin (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: