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

Text Cursor blinks inside a disabled text field, Win32

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      I have a button and a text field placed inside a frame. On Clicking the button, I am actually disabling the button as well as the text field. As per the specification, the button (focus owner) initiates a forward focus traversal when clicked and focus goes to the text field which is also disabled.

      On Win32, I am surprised to see the text cursor actually blinking inside the disabled text field. It looks as if the text field is responsive to user inputs, though in reality, it is not. So the blinking cursor must actually be removed. This is how it works for XAWT. On XAWT, no cursor is seen on a disabled text field.

      This is reproducible on WinXP since Mustang-b58. I could not regress it on earlier builds/releases since the text field was actually responding to user inputs because of another bug that got fixed in b58 (5044469). Not reproducible on XAWT.

      I have attached a testcase. Execute the test. Click on the disable button. Focus will be shifted to disabled text field and you would actually see a text cursor blinking inside the text field.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Imported:
                Indexed: