JDK-4475409 : requestFocus(true) no longer generates event with temporary flag set to true
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-06-27
  • Updated: 2001-08-02
  • Resolved: 2001-08-02
Description
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b69)
Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b69, mixed mode)

requestFocus(true) on a lightweight is no longer generating a focus gained event with the temporary property true. The javadoc warns that the temporary property may not be set, but I'm filing the bug to make sure this isn't a regression, if this change was intentional, feel free to close out the bug. This use to work fine on 1.4-beta. I tried this on both Solaris and Windows, both give the same behavior.
The test has two Containers (red and white). Clicking on a square will invoke requestFocus(true) on the square. A FocusListener has been attached to each Component as well that will print out the results of focus lost/gained events, including the temporary property. If you click on the white square then red square you can see that the requestFocus(true) results in a FocusEvent with the temporary property equal to false.

Comments
EVALUATION We were not able to reproduce this with merlin-beta build 73. eric.hawkes@eng 2001-08-02
02-08-2001