JDK-7124375 : [macosx] Focus isn't transfered as expected between components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2014-03-10
  • Resolved: 2012-09-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b56Fixed
Description
http://java.net/jira/browse/MACOSX_PORT-320 submitted 2011/08/24 by Taras Ledkov
Please take a look the regression test:
java/awt/Focus/ContainerFocusAutoTransferTest/ContainerFocusAutoTransferTest.java
Test #1 fails.
Steps:
1. Frame with two panels and buttons on the panels are created;
2. Panel witch focused button is hidden;
3. No button on other panel has focus.
Build: b204
Keywords: test-fail-macos

Comments
java/awt/Focus/ContainerFocusAutoTransferTest/ContainerFocusAutoTransferTest.java PASSED under JDK 8 b132 on MacOS, Linux, Solaris, Windows. Closed issue as Fixed/Verified.
10-03-2014

/test: http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/file/a5d3d97f79c9/test/java/awt/Focus/ContainerFocusAutoTransferTest/
04-12-2012

EVALUATION When user's code sets its own KeyboardFocusManager we loose all information about currently focused window/component.
19-07-2012

EVALUATION Looks not critical.
10-02-2012