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

Disabling a frame does not prevent the button in it from being responsive to key events, win32

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      I have a frame with a button. On clicking the button, I am disabling the frame. After that, the focus still stays with the button and button responds to all the key events. Say pressing a space bar triggers an action event for the button. But button is not clickable using mouse. This behavior is seen only on Win32. On Solaris / Linux, the button also gets disabled and hence does not respond to any keyevents when parent frame gets disabled.

      This is reproducible on all releases (at least since 1.3.1) only on Win32.

      I have attached a sample test. Run the sample text on WinXP. You would see a frame with a button. Click on the button. Frame gets disabled. Make sure button still has the focus. Press space bar. If an action event is triggered (watch the console) the bug is reproduced.
      ###@###.### 10/27/04 09:10 GMT

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: