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

REG: ActionEvent.getWhen() returns 0 always for TextField on XToolkit

XMLWordPrintable

    • b79
    • sparc
    • solaris_10
    • Verified

      I have a text field and a button on a frame. I am pressing 'ENTER' in the text field and text field triggers ActionEvent. But ActionEvent.getWhen() returns 0 always. This should actually return the actual time stamp of the corresponding input event.

      This is reproducible only on XToolkit since Mustang. This is not reproducible on XAWT/Motif with Tiger-FCS. Hence it is a regression introduced in Mustang. Works fine with Motif on Mustang. I reproduced it with SolSparc10-JDS - Mustang b59.

      I have attached a sample test. Execute the sample test. You would get a frame with a text field. Press 'ENTER' inside the text field. Check the console. If getWhen() returns 0, the bug is reproduced.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: