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.
|