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

REG: Disabled component gains focus and receives keyevents on win32

XMLWordPrintable

    • b58
    • x86
    • windows_xp
    • Verified

        I am popping up a frame with 3 buttons. On clicking the first button, all the 3 buttons located at the southern region of the frame will be disabled. When running this application on win_xp, when I click the first button, all the 3 buttons are getting disabled but focus is shifted to the second buton which is in disabled state. When I press the space bar, this disabled button received the keyevent and triggers the action event. This is incorrect. A disabled component should not gain focus and should not respond to any of the key or mouse events.

        This is not reproducible on Solaris-Sparc9 (CDE). This is reproducible since JDK1.4.2-fcs and is working fine on the previous releases. This is reproducible on Tiger-beta2-b50.

        I have attached a sample test. Execute the sample test. Click the 'Disable' button. Make sure all the 3 buttons are disabled. Press the space bar. When the second button 'Click Me' triggers action event, the bug is reproduced.

              osemenovsunw Oleg Semenov (Inactive)
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: